IBM Worklight 6.1.0 を使用し、iOS 7 デバイスでテストしています。
アプリケーションをテストしてログアウトしようとしても、まだ eventSource にサブスクライブしています。
これは私のコードです:
function logout() {
console.log('logout');
WL.Client.logout('FahrAuthRealm',{onSuccess:function(){
WL.Client.updateUserInfo();
console.log('logout Success');
WL.Client.Push.unsubscribe("myPush", {
onSuccess: function() {alert("unsubscribe myPush success");},
onFailure: function() {alert("unsubscribe myPush failed");}
});
router.navigate("#home",true);
}});
}
私のコードに何か問題がありますか? eventSource から登録解除できないのはなぜですか?