Unable to connect to internet?

I have uploaded an app to google play on alpha testing. The apk has an additional expansion which is supposed to download at the first time the app was opened. But i received a network error that tells me to connect to the internet.

http://postimg.org/image/y6be4j3uz/

I am already connected to the internet and able to use chrome. I have also allowed android permissions for internet.

Hi @wesleysingapore,

This may be an issue with the expansion file. Did you properly configure expansion file support in build.settings? Please review this brief tutorial:

http://www.coronalabs.com/blog/2013/04/17/expansion-file-support-for-android/

Thanks,

Brent Sorrentino

Hi @wesleysingapore,

This may be an issue with the expansion file. Did you properly configure expansion file support in build.settings? Please review this brief tutorial:

http://www.coronalabs.com/blog/2013/04/17/expansion-file-support-for-android/

Thanks,

Brent Sorrentino

@Brent Sorrentino

I am going through the same problem, i followed the instruction properly from the blog, but got the same network connection dialog.

Please help.

Thanks,

@contact130

Since you’re an enterprise user you have to edit the AndroidManifest file manually to include those permissions.  Just setting them in the build.settings file will not work.

It sounds like you’ve done this but also make sure that you’ve added the following to the AndroidManfiest file: 

<meta-data android:name=“usesExpansionFile” android:value=“true” />

inside the application section of the manifest.

I decoded my apk file to check manifest file, and found that it includes all the permissions, and has usesExpansionFile already set to true.

Did you upload your apk along with the expansion file to the Google Play servers?  Also does the version uploaded to the server match what you’re installing on your device?

@Brent Sorrentino

I am going through the same problem, i followed the instruction properly from the blog, but got the same network connection dialog.

Please help.

Thanks,

@contact130

Since you’re an enterprise user you have to edit the AndroidManifest file manually to include those permissions.  Just setting them in the build.settings file will not work.

It sounds like you’ve done this but also make sure that you’ve added the following to the AndroidManfiest file: 

<meta-data android:name=“usesExpansionFile” android:value=“true” />

inside the application section of the manifest.

I decoded my apk file to check manifest file, and found that it includes all the permissions, and has usesExpansionFile already set to true.

Did you upload your apk along with the expansion file to the Google Play servers?  Also does the version uploaded to the server match what you’re installing on your device?

Hi,

Unfortunately, I also have the same problem with my latest app. For the previous one, I had to use my own assets download system cause Corona didn’t handle expansion packs at the time, but for this new app, I logically let Corona do the work for me.

So far, I received 3 complaints from users who can’t install the app: same “Network Error” message as above whereas their device is connected to the Internet --obviously, since they were able to download the initial APK file from Google Play. Sadly, one of them let a 1-star review --not cool, but I can understand his frustration. 

Now this is where it’s getting weird: one user had no problem to download the expansion pack on her Nexus 7 --I got in contact with her cause she wrote a review of my app for a French Website. I just tried myself and I got the same error message on my Nexus 7.

I used build 1202, the permissions in the build.settings file are okay and so is the license in the config file.

Can you please help, I’m kinda desperate --and very embarrassed vis-à-vis my customers…

Thanks,

Ch.

Hi Ch,

Can I take a glance at your build.settings file, at least the part relevant to Android? Please post it here.

Thanks,

Brent Sorrentino

Hi Brent,

I just found out your reply --I didn’t receive a notification although I’m following the thread!

Here’s the android part of my build.settings file:

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;android = &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;usesExpansionFile = true, &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;usesPermissions = &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"android.permission.INTERNET", &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"com.android.vending.CHECK\_LICENSE", &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"android.permission.WRITE\_EXTERNAL\_STORAGE", &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}, &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;versionCode = "100", &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;versionName = "1.0.0" &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}, &nbsp;

How do you explain that some users succeed on installing the app and some don’t?

Thanks for any help you can provide, I received another user complaint today.

Ch.

Hi,

When you deployed your app did you make sure the targeted app store was “google”?

Hi,

Yes, I did. I had to, anyway, otherwise, the expansion file wouldn’t have been generated…

Ch.

Can you print out the log from the device?

Possibly on a related note…

Is your Nexus 7 running Android 4.3?

The person who downloaded it fine, are they running an earlier OS version?

I bring this up because there seems to some odd network behaviors being noticed with Nexus 7’s and 4.3.

Yes, my Nexus 7 is running Android 4.3 and so are the devices of at least one of my users who couldn’t install the app. He tried on two Galaxy devices, both with the latest version of the OS --so, logically 4.3. 

I don’t know if the one who succeeded to install the app uses an older version of Android, but I guess we can assume that’s the case. 

Here’s the requested log --captured just before I launch the app, then taping “Restart Download”:

I/LicenseChecker( 2635): Binding to licensing service.
I/LicenseChecker( 2635): Calling checkLicense on service for net.squareigloo.bookapp.bluebernard
I/LicenseChecker( 2635): Start monitoring timeout.
I/qtaguid ( 1364): Failed write_ctrl(u 53) res=-1 errno=22
I/qtaguid ( 1364): Untagging socket 53 failed errno=-22
W/NetworkManagementSocketTagger( 1364): untagSocket(53) failed with errno -22
I/LicenseChecker( 2635): Received response.
I/LicenseChecker( 2635): Clearing timeout.
D/dalvikvm( 2635): GC_FOR_ALLOC freed 5090K, 40% free 8413K/13840K, paused 16ms, total 16ms
D/dalvikvm( 2635): GC_FOR_ALLOC freed 354K, 40% free 8409K/13840K, paused 14ms, total 14ms
I/Corona  ( 2635): Not licensed
W/InputMethodManagerService(  428): Window already focused, ignoring focus gain of: com.android.internal.view.IInputMethodClient$Stub$Proxy@4241c9d0 attribute=null, token = android.os.BinderProxy@42436720

For your specific case, you’re not licensed for the app.  You need to add your google account to the list of testers or buy the app on the google account on your nexus 7.  We’ll try to improve the error message thats displayed to the user.