native.showPopup("appStore") question

The documentation for the showPopup API indicates that when calling “appStore” that it shows up in a popup window. However this is not the actual functionality. It closes the current app and opens the App Store, which is definitely not ideal behavior. Is there a way to do an actual in-game popup of the App Store?

Original post [solved]:

I’m trying to use the app store popup in our app, but I keep getting this message in the console:

Error: native.showPopup() does not support appStore popups on this device.

I’ve tried this on the iPad 3 and iPad Air and get the same result.

Is there some plugin I’m missing? I have the Game Network, Popup Activity, and Popup Social plugins installed.          

Heres my code

 local service\_name = "appStore"                          local options = {                                  iOSAppId = 123456789                              }                          local is\_available = native.canShowPopup("appStore", options)                          if is\_available then                                  native.showPopup(service\_name, options)                              else                 native.showAlert("App Store is currently unavailable",                 "Please check your App Store account or network connection.",                 { "OK" } )             end

Any help would be appreciated, thanks.

The iOS App ID is a string not a number.  Try putting “” around the value and make sure the number is valid.

Rob

Thank you Rob! That was the problem.

One other quick question, this just switches to the App Store app, is there a way to do an actual popup in game? 

Thanks

Not with Corona SDK.  You might be able to with Corona Enterprise.

Rob

The iOS App ID is a string not a number.  Try putting “” around the value and make sure the number is valid.

Rob

Thank you Rob! That was the problem.

One other quick question, this just switches to the App Store app, is there a way to do an actual popup in game? 

Thanks

Not with Corona SDK.  You might be able to with Corona Enterprise.

Rob