I'm having some issues getting push notifications to work on Android. I have added a pushSender to the android section of the application-descriptor.xml with the key that was generated (I've removed our key values).
<android version="1.0.5">
<worklightSettings include="true"/>
<pushSender key="our key" senderId="our sender"/>
<security>
<encryptWebResources enabled="true"/>
<testWebResourcesChecksum enabled="true" ignoreFileExtensions="png, jpg, jpeg, gif, mp4, mp3"/>
<publicSigningKey>our key</publicSigningKey>
</security>
</android>
Every time I start the app, I get the message "Failed registering for push notifications. The application will not be able to receive notifications.
I thought for a little while that it may be because I was testing on our internal network and it needed access to the outside world, but even when it could get to the world, I still received the message. I've tried adding the securityTest parameter to the android tag, but it did not make any difference.
In the authenticationconfig.xml file, I've added a mobile security test to the security tests section:
<mobileSecurityTest name="PushApp-securityTest">
<testDeviceId provisioningType="none"/>
<testUser realm="PushAppRealm"/>
</mobileSecurityTest>
I have the realm set up like this:
<realm name="PushAppRealm" loginModule="PushAppLoginModule">
<className>com.worklight.core.auth.ext.PersistentCookieAuthenticator</className>
</realm>
And the login module is like this:
<loginModule name="PushAppLoginModule">
<className>com.worklight.core.auth.ext.NonValidatingLoginModule</className>
</loginModule>
I'm really lost as to why it is failing to register. We're running Worklight 5.0.6.2.