I am working on one product using CRA, Service Worker and PWA. Everything is working fine in both iOS and Android devices. But I need push notification for my new functionalities launched in my pwa for end users.
In Android using firebase and push notification api its possible to implement but in iOS I am not able to implement as push notification is not supported in any of the iOS version.
Please suggest how to implement or is any way available for sending push notification in iOS devices also.
Related
I followed the google documents to create a progressive webapp and I've just implemented push notifications, however whenever I close the app I don't get any notifications.
Other apps like whatsapp seem to be able to send those notifications is there a difference between native notifications and gcm push notifications from a progressive webapp?
There absolutely no difference between the two, the rendering part is the same, it just that native ones are the notifications that comes from a apk generated app and the other one is rendered using google chrome or any web browser that support the functionality.
Beside the service worker with the help of manifest.json file will use the GCM ( Google Cloud Messaging) to send notifications to end users.
I worked and implemented such functionalities before, and I got my notification directly to the browser and my android phone as well, therefore I created a Github repo with nice documentation that simulate just that using Nodejs and simple web interface, please feel free to check I guess it holds what you seek :
Link : https://github.com/houssem-yahiaoui/webpush-notification
I have an android app already made and it supports push notification. I used Google cloud messaging for push notification. How to make the same push notification work on ios.
Do I have to make another one using apple push notification services?
Android and iOS are coded very differently, you can't just copy the app code in your android app and put it directly into an iOS app. You will have to learn how iOS push notifications work. I suggest this tutorial:
http://code.tutsplus.com/tutorials/setting-up-push-notifications-on-ios--cms-21925
In order to use Push Notification in IOS device you need to integrate Apple's APNS service.
Follow this link:
Apple's APNS
1- I want to write a simple web app (not native) used to send my clients news via push notification on ios, android, etc.
I found pusher.com, but the demo is not working.
It could be great if I can link it to my rss url, so they can get notified whenever a new record is added.
2- I want to add shortcut of my app on client devices.
Thanks
You can use GCM for android, and APNS for iOS, and there are many tutorials of these. Especially, iOS very strict rule for push notification, or your app will be rejected.
I'm currently developing android apps using phonegap + jquery mobile. I need to add notification bar in my application. Currently, I'm using Notification phonegap plugin to handle notification. But it didn't send notification when application closed. Is there any solution to keep my user recieve notification even application is closed? Can I use Google Cloud Messanging to solve it?
Thank you and sorry for my bad english
You can use push notifications. The following plugin handles both Android and iPhone notifications:
https://github.com/phonegap-build/PushPlugin
A notification will be shown whenever a push message is received and it contains a message attribute.
How would phonegap/html5 app handle push notification. Would it be same code or Android/iPhone? Does this work for phonegap based app on iOS and Android and are there any limitations?
How would phonegap/html5 app handle push notification
You can't handle the push notification in html, but you can in Java or Objective-C
Would it be same code or Android/iPhone?
No, it won't. Push notification works quite the same way on Android and iOS but there are a few differences. Plus, because it is the native side of your PhoneGap application that will handle notifications, you will need to write different methods in both Java and Objective-C
Does this work for phonegap based app on iOS and Android and are there any limitations?
I'm currently working on a PhoneGap application on iOS and Android and push notification works fine on both these OS.
I recommend UrbanAirship:
https://github.com/urbanairship/ios-phonegap-plugin
http://minimoesfuerzo.org/2011/06/6/urban-airship-10-integration-android-phonegap-app/
I am just now in the process of developing the PhoneGap plugin for OpenMobster. From the looks of it for OpenMobster, the Push notification code with its corresponding Broadcast listeners will remain the same as in the pure native app development. On iOS as well there should be no added PhoneGap specific code required to handle the Push notifications via the Apple Push Notification Service.
To answer your question, in theory the html5/javascript codebase using PhoneGap should remain the same for both the platforms.
(p.s. this applies to how OpenMobster handles push notification. I am not sure how Urban Airship handles the PhoneGap side of things)
Thanks
Sohil