Closed julestruong closed 8 years ago
Hello,
From the documentation
on IOS :
pushNotification.registerDevice( function(status) { var deviceToken = status['deviceToken']; console.warn('registerDevice: ' + deviceToken); }, function(status) { console.warn('failed to register : ' + JSON.stringify(status)); alert(JSON.stringify(['failed to register ', status])); } );
on Android
pushNotification.registerDevice( function(status) { var pushToken = status; console.warn('push token: ' + pushToken); }, function(status) { console.warn(JSON.stringify(['failed to register ', status])); } );
In Android the token is directly given while in IOS the token is within an Object.
May i ask why ?
Fixed in 6.0.0
Hello,
From the documentation
on IOS :
on Android
In Android the token is directly given while in IOS the token is within an Object.
May i ask why ?