Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 3548

Re: Unable to Trigger Push notification registration in IOS using Push Kapsel cordova plugin

$
0
0

When you debug the application, in the AppDelegate.m do you either reach:

 

- (void) application:(UIApplication*)application

    didRegisterForRemoteNotificationsWithDeviceToken:(NSData*)deviceToken

{

    // re-post ( broadcast )

    NSString* token = [[[[deviceToken description]

        stringByReplacingOccurrencesOfString:@"<" withString:@""]

        stringByReplacingOccurrencesOfString:@">" withString:@""]

        stringByReplacingOccurrencesOfString:@" " withString:@""];

 

 

    [[NSNotificationCenter defaultCenter] postNotificationName:CDVRemoteNotification object:token];

}

 

or

 

 

 

- (void) application:(UIApplication*)application

    didFailToRegisterForRemoteNotificationsWithError:(NSError*)error

{

    // re-post ( broadcast )

    [[NSNotificationCenter defaultCenter] postNotificationName:CDVRemoteNotificationError object:error];

}

 

XCode log reading regarding Push Notification:

 

2016-01-21 11:46:18.184 X[339:80611] checkForNotification: Checking for the backgroudn notification

2016-01-21 11:46:18.187 X[339:80611] PushNotificationPlugin: Register for Notification

2016-01-21 11:46:18.201 X[339:80611] THREAD WARNING: ['SMPPushPlugin'] took '13.468994' ms. Plugin should use a background thread.

2016-01-21 11:46:19.025 X[339:80611] PushNotificationPlugin: registered for remote notifications

2016-01-21 11:46:19.026 X[339:80611] Device Token: 6aa29a985c9a0d952a27c4e706bc0c72949d5375321a8cfafdc28d065b51fe9e

2016-01-21 11:46:19.026 X[339:80611] Device Token Orig Format: <6aa29a98 5c9a0d95 2a27c4e7 06bc0c72 949d5375 321a8cfa fdc28d06 5b51fe9e>


Viewing all articles
Browse latest Browse all 3548

Trending Articles



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