简体   繁体   中英

Windows phone 8 init failure with IBM Worklight

I have a strange behaviour in my Windows phone 8 application based on Worklight.

it works locally but when I deploy it in the production environment sometimes it works and sometimes not. Obviously, the behaviour I have is that the app init success in the first launch, it doesn't work in the seconde launch, it works in the third launch, doesn't work in the forth launch ... one by one. the difference between the development environment and the production environment is that the first one is running over HTTP and the seconde one is running ever HTTPS.

Notice that it works in the other environments (Android, iOS, BlackBerry)

Any help?

I figured out how to fix the problem. So to explain, here, what I did:

Before calling WL.client.init , I added a procedure call first (It's like a fake call) and then I initialized the WL Client.

Obviously, It fixed my problem. I think calling a procedure does initialize the connection between the client and the server.

So when the client call WL.Client.init or WL.Client.connect, succeeds to reach the server cause the connection is already initialized.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM