Quantcast
Channel: Ionic Framework - Ionic Forum
Viewing all articles
Browse latest Browse all 49183

IOS push notification issue

$
0
0

@Maheshvy wrote:

Hi ,

I'm using plugin for push notification

cordova plugin add phonegap-plugin-push --variable SENDER_ID="xxxxx"

i not able to get push notification in ios device(version 9.3.5 and above) ..But in server it is showing message send successfully.
my front end code is here .

       var push = PushNotification.init({
                "android": {
                    "senderID": "xxxxx",
                    "icon": "notify",
                    "iconColor": "#204057",
                    "forceShow": "true"
                },
                "ios": {
                    "alert": "true",
                    "badge": "true",
                    "sound": "true",
                    "forceShow": "true"
                }
            });

            push.on('registration', function(data) {
               alert(data);
            });

            push.on('notification', function(data) {
                alert(data);
            });

            push.on('error', function(e) {
            });

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 49183

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>