我的Worklight应用中有一个按钮,可以将应用和用户订阅到通知源,其方式与此网址上的通知示例非常相似:http://www.ibm.com/developerworks/mobile/worklight/getting-started.html#advanced
问题是当设备重启/或应用关闭并且我需要重新登录时 - isSubscribed函数将返回false - 尽管之前是真的。
客户端是否意味着自动保存其订阅?在多个设备/应用重启时维护订阅通知源的最佳做法是什么?
这是我的securityTests设置:
<securityTests>
<customSecurityTest name="WebServicesAdapters-securityTest">
<test isInternalUserID="true" realm="CustomAuthenticatorRealm"/>
</customSecurityTest>
<mobileSecurityTest name="PushApplication-strong-mobile-securityTest">
<testUser realm="CustomAuthenticatorRealm"/>
<testDeviceId provisioningType="none"/>
</mobileSecurityTest>
</securityTests>
答案 0 :(得分:0)
这是Worklight v5.0.5.x中的一个缺陷,已在5.0.6中修复。
要解决此问题,您可以尝试使用非基于适配器的身份验证。如果只保护适配器,这将失败,应用程序也必须受到保护。