3

I would like to know is there any way to send notification from a server to an Android device without a client app installed on the device. Does android OS has such functionality. Based on the answer here Does Android support near real time push notification? Google Cloud Messaging do similar things, but it seems the client app need to be installed on user mobile.

Basically what I want do when an android device comes in range of an iBeacon
I need to send the notification messages to the user mobile.

Is there any way to achieve it. Any possible solution?

Edit:

The real scenario is like, I have the beacon placed in somewhere, when the a device comes in range of the beacon, some how I have to detect the device(if the device Bluetooth is on) and get some id of the device send notification from cloud server. Where as the device(Android phone) don't know the beacon is there, or there is no app installed on the device to detect the beacon.

I am not sure whether it's possible to achieve the above goal in such a scenario.

Please let me know your valuable feedback.

Community
  • 1
  • 1
Haris
  • 13,645
  • 12
  • 90
  • 121
  • use `Enter` and `Exit region` the way of `IBeacons`. Why push notification ? – M D Feb 10 '16 at 06:21
  • Can you please elaborate?. Actually I need to send some custom message to user mobile with image and text. – Haris Feb 10 '16 at 06:44
  • what type of custom images you want to display? i mean server send this images. – M D Feb 10 '16 at 06:46
  • Yes the image and message are stored on server database. – Haris Feb 10 '16 at 06:48
  • I have one way. Download all the data from your server and store it in your mobile DB. and when you are in the range of beacons create a custom notification with data and image and show it. No need to implement GCM in this case. – M D Feb 10 '16 at 06:49

1 Answers1

4

Chrome 42 or higher for Android supports push notifications from websites, which allows you to send notifications without installing an app.

If you're specifically looking to start notifications from a beacon, Chrome 49 added support for beacons

ianhanniballake
  • 191,609
  • 30
  • 470
  • 443
  • So which application is going to receive the notification on Android, google chrome?. – Haris Feb 10 '16 at 09:57
  • That's correct - Google Chrome receives the push notification, forwarding it to your Service Worker for display – ianhanniballake Feb 10 '16 at 16:02
  • Based on this link http://www.theverge.com/2015/4/20/8454613/push-notifications-android-chrome-42-mobile-web the user need to visit some site that supports notifications, will receive a prompt asking you if you'd like to turn them on. When you do, that website can send you push notifications whether you have the browser open or not. That means I have to create site and user should visit that site and subscribe the notification. But I think it's not suit for above situation. – Haris Feb 10 '16 at 16:18
  • @Haris - see the updated answer - Chrome 49 added beacon support – ianhanniballake Feb 10 '16 at 20:57