Ajith Ajith - 14 days ago 9
iOS Question

pushwoosh-cordova-plugin register device fails iOS 10.1.1 IPv6

My Cordova iOS Application recently got rejected from App Store. The reason was that the iOS device was not able to register in Pushwoosh. The rejection message is as follows :


Performance - 2.1

We still discovered one or more bugs in your app when reviewed on iPhone running iOS 10.1.1 on Wi-Fi connected to an IPv6 network.

Specifically, error messages appear after logging in.

Next Steps

Please run your app on a device while connected to an IPv6 network (all apps must support IPv6) to identify the issue(s), then revise and resubmit your app for review.


The App has a login section for which the deviceToken is a mandatory parameter. I am using pushwoosh-cordova-plugin v6.3.0 in order to get the deviceToken and send push notifications.

I've tested the App in iOS v10 and I am able to register device in pushwoosh and also received the deviceToken. I doubt the compatibility of the plugin with IPv6 network.

I've uploaded the same App to Google Playstore and everything is working fine.

The code for registering the device is as follows :

window.pushwoosh = cordova.require("pushwoosh-cordova-plugin.PushNotification");

pushwoosh.registerDevice(
function(status) {
var pushToken = status.pushToken;
document.getElementById('hiddentoken').value = pushToken;
},function(status) {
navigator.notification.alert("error");
});


Additional Details :

<gap:plugin name="pushwoosh-cordova-plugin" version="6.3.0" source="npm" />

<preference name="phonegap-version" value="cli-5.2.0" />

Is this the problem with the plugin I'm using?

Has anyone got similar problem?

Any help will be appreciated.

Answer

This problem is solved. It was not due to IPv6 network or the plugin that I was using. I was having device token as a mandatory parameter, which was not obtaining when the user Deny for push notifications, which fails the login section.