Network Error - Flash AS3 Air for android

0 votes

HI,

I have created simple login system. But I got this error ("Network Error. Check your internet connectivity and retry ") when i connect with cloud.

// ------ in listener class code -------------
public function onConnectDone(res:int, reason:int):void
{
if (res == ResultCode.success) {
trace( " Success ");
} else if (res == ResultCode.auth_error) {
trace( " Auth Error ");
} else if (res == ResultCode.connection_error) {
trace("Network Error. Check your internet connectivity and retry");
} else {
trace("Unknown Error ");
}
}
 
// ----------- in main Class code ---------------------
 
WarpClient.initialize(apiKey, secretKey);
appwarp = WarpClient.getInstance();
appwarp.setConnectionRequestListener(appwarpListener);
WarpClient.getInstance().connect(username);

 

Thanks

asked Jan 12, 2015 in AppWarp by benjamin (16 points)

1 Answer

0 votes
Hi,

The above error occurs when there is no network.

You will need to give Internet Permission when deploying on Android. Please make sure you are having appropriate permissions.

Thanks
answered Jan 12, 2015 by Suyash Mohan (900 points)
Is it working in editor?
Then you are doing something wrong at very basic level. Please check if you are following each step correctly. You can go through our Documentation. You can even share your steps here. I will need to know what exactly you are doing to help you solve your issue.
Correct. But I couldnt understand your documentation. can you provide any source file for flash.
Download Widgets
Welcome to ShepHertz Product line forum, where you can ask questions and receive answers from the community. You can also reach out to us on support@shephertz.com
...