Worklight アプリには、次の URL の通知サンプルとほぼ同じ方法で、アプリとユーザーを通知ソースにサブスクライブするボタンがあります: http://www.ibm.com/developerworks/mobile/worklight/getting-started .html#高度な
問題は、デバイスが再起動したり、アプリがシャットダウンしたりして再ログインする必要がある場合です。以前は true であったにもかかわらず、isSubscribe 関数が 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>