native.showPopup("appStore") not working on-device

Hi!  I’m trying to provide a “rate my app” button, but seem to be failing

I know the popups don’t work in simulator, but it’s not working on-device either.  (No error given other than showPopup returning false.  Just a silent failure.)  However the canShowPopup function is saying it should work.  With USB debugging on, logcat outputs the following when the below function is called

rate pressed

bCanRate = true

bWorked = false

I am trying this on my Nexus 7, but was not having luck with my phone either.  Any ideas?

--Static callback for tapping the app rate button function MainMenuSubHandler.\_OnTapRate()     print("rate pressed")          local bCanRate = native.canShowPopup("appStore")     print("bCanRate = " .. tostring(bCanRate))          local options = {supportedAndroidStores = "google"}     local bWorked = native.showPopup("appStore", options)     print("bWorked = " .. tostring(bWorked)) end

I don’t see where you are providing the app’s package name:
 

androidAppPackageName = “my.other.app.”,

Without it, the popup has no idea what app to rate.

Well, according to (http://docs.coronalabs.com/api/library/native/showPopup.html#appstore-and-rateapp)]the docs, the package name isn’t necessary unless you’re rating a different app:

options.androidAppPackageName is the unique package name string of the Android app to be displayed by the Google Play, Amazon, or Samsung app stores. This property is optional. If you do not provide a package name, then Corona will use the currently running app’s package name by default. You should only set this if you want to display the app store details of another app.

Regardless, that doesn’t seem to work either.  This produces the same output (and fails to make a popup)  as the original code I posted:

rate pressed

bCanRate = true

bWorked = false

Also, here is my actual live app store listing, so you can see the package name matches up:  https://play.google.com/store/apps/details?id=com.lightspiralstudios.games.jacobsladder1

--Static callback for tapping the app rate button function MainMenuSubHandler.\_OnTapRate()     print("rate pressed")          local bCanRate = native.canShowPopup("appStore")     print("bCanRate = " .. tostring(bCanRate))          local options = {supportedAndroidStores = "google", androidAppPackageName = "com.lightspiralstudios.games.jacobsladder1"}     local bWorked = native.showPopup("appStore", options)     print("bWorked = " .. tostring(bWorked)) end

Bumping this.  Any ideas or anything I should investigate on my end?

Edit:  Other info-  Network connection exists and e-mail popup works correctly.

just out of curiosity you do have the INTERNET permission turned on in your build.settings?

Yes, I do.  (Although I tested both with and without and the other popup types do not seem to require it.)

Another thing I tried that didn’t work:  Completely uninstalling the app and deleting it’s data and then re-installing in case something weird was somehow left over from an earlier version.

Edit:  Maybe something in the API doesn’t like that my package name ends in a number?  (I’m completely guessing here.)

I don’t see where you are providing the app’s package name:
 

androidAppPackageName = “my.other.app.”,

Without it, the popup has no idea what app to rate.

Well, according to (http://docs.coronalabs.com/api/library/native/showPopup.html#appstore-and-rateapp)]the docs, the package name isn’t necessary unless you’re rating a different app:

options.androidAppPackageName is the unique package name string of the Android app to be displayed by the Google Play, Amazon, or Samsung app stores. This property is optional. If you do not provide a package name, then Corona will use the currently running app’s package name by default. You should only set this if you want to display the app store details of another app.

Regardless, that doesn’t seem to work either.  This produces the same output (and fails to make a popup)  as the original code I posted:

rate pressed

bCanRate = true

bWorked = false

Also, here is my actual live app store listing, so you can see the package name matches up:  https://play.google.com/store/apps/details?id=com.lightspiralstudios.games.jacobsladder1

--Static callback for tapping the app rate button function MainMenuSubHandler.\_OnTapRate()     print("rate pressed")          local bCanRate = native.canShowPopup("appStore")     print("bCanRate = " .. tostring(bCanRate))          local options = {supportedAndroidStores = "google", androidAppPackageName = "com.lightspiralstudios.games.jacobsladder1"}     local bWorked = native.showPopup("appStore", options)     print("bWorked = " .. tostring(bWorked)) end

Bumping this.  Any ideas or anything I should investigate on my end?

Edit:  Other info-  Network connection exists and e-mail popup works correctly.

just out of curiosity you do have the INTERNET permission turned on in your build.settings?

Yes, I do.  (Although I tested both with and without and the other popup types do not seem to require it.)

Another thing I tried that didn’t work:  Completely uninstalling the app and deleting it’s data and then re-installing in case something weird was somehow left over from an earlier version.

Edit:  Maybe something in the API doesn’t like that my package name ends in a number?  (I’m completely guessing here.)