native.showPopup

This is a continuation of the discussion from the API page. http://developer.anscamobile.com/reference/index/nativeshowpopup [import]uid: 7559 topic_id: 24292 reply_id: 324292[/import]

I am able to send an email with my droid within my app. Problem is the popup does not go away after the email is sent. Shouldn’t there be a native.cancelPopup API? Or am I missing something?
daf [import]uid: 58825 topic_id: 24292 reply_id: 105547[/import]

Hello, Is it possible somehow to determine ones own email address on your Iphone through a corona function, so that I can pass the native.ShowPopup (emailto= parameter wih my own email, because I want to populate the Send to field with my own email address ? Thank you in advance. Best Regards [import]uid: 124819 topic_id: 24292 reply_id: 107482[/import]

Hi

When will the native.showPopup( ) be available on the trial build? [import]uid: 143974 topic_id: 24292 reply_id: 110489[/import]

@mdayam: In the next public release which is to drop shortly [import]uid: 84637 topic_id: 24292 reply_id: 110492[/import]

@Danny: Thanks for the prompt feedback. Can’t wait. [import]uid: 143974 topic_id: 24292 reply_id: 110512[/import]

@Danny: Thanks for the prompt feedback. Can’t wait. [import]uid: 143974 topic_id: 24292 reply_id: 110596[/import]

FYI, I put in a feature request for MMS support (specifically so a picture could be attached to a text message). I know a few other people have asked for that, so it may already have been on the list. I have an app that desperately needs this.
[import]uid: 111481 topic_id: 24292 reply_id: 111768[/import]

We also need to send screenshots to support mms, there is provided a solution? [import]uid: 37792 topic_id: 24292 reply_id: 114464[/import]

hello, is there a way to do a selection (EMAIL OR SMS) when a popup appears?

Well i want to do a share button … When the user touch this button i want to appear to him these 2 options (email/sms) . Is there a native way to appear these options?? [import]uid: 185094 topic_id: 24292 reply_id: 128387[/import]

hello, is there a way to do a selection (EMAIL OR SMS) when a popup appears?

Well i want to do a share button … When the user touch this button i want to appear to him these 2 options (email/sms) . Is there a native way to appear these options?? [import]uid: 185094 topic_id: 24292 reply_id: 128387[/import]

I’m trying to track down complete documentation of this feature. I’ve seen some comments on the forums just a few months back from staff about there being the ability to go beyond e-mail and SMS, allowing for “rateApp” and “appStore” as name arguements to the native.showPopup() function.

In October, staff member Joshua Quick wrote this (http://developer.coronalabs.com/forum/2012/01/03/link-review-nook-are-intents-required-workarounds#comment-126018):

===============================================================

Just so you know, we did add the ability to display other apps in the app store. This was added as of daily build #912. That was a few weeks ago. Sorry about forgetting to inform you all.

The API documentation on our daily build page has been updated to reflect this newest change. It does a pretty good job describing how it works… but below is a quick example of the finalized API.

local options =  
{  
 iOSAppId = "1234567890",  
 nookAppEAN = "0987654321",  
 androidAppPackageName = "my.other.app.",  
 supportedAndroidStores = { "google", "samsung", "amazon", "nook" },  
}  
native.showPopup("appStore", options)  

The [lua]androidAppPackageName[/lua] is optional and allows you to specify the package name of another app. If you do not set it, then Corona will use your app’s package name by default.

We still support the [lua]“rateApp”[/lua] popup option to be backward compatible with what we had before. This will attempt to jump straight to the “Write Review” window on iOS 5 or lower systems. It turns out that this is not possible on iOS 6 or any other app store, so it will display the App Store Details window instead just like how [lua]“appStore”[/lua] works.

One more thing. Some people are getting their app’s rejected by Amazon because their [lua]supportedAndroidStores[/lua] lists both “google” and “amazon”, but it turns out that Corona guessed wrong and launched the Google Play store instead. There is no nice way for Corona to guess correctly which store it belongs to if the app was installed by hand (in this case the app reviewer). So, I recommend that you do separate builds per app store that you are targeting and set the [lua]supportedAndroidStores[/lua] to the appropriate store name. There isn’t really any other nice way of doing this… and it’s no different than what Java developers are doing who build with the Android SDK.

===============================================================

Looking at the official documentation, this feature is *not* documented, as described in this post, so either it was removed or the docs were never updated. I’ve tried both “rateApp” & “appStore” with native.showPopup() and have only see the following error:

ERROR: native.showPopup() does not support rateApp popups on this device.

Testing on the device also does not trigger a pop-up either. I’m using CoronaSDK 2012.971.

Can someone from the Corona team explain if this feature is in our out? I’m not sure if there’s any other official place where I can go to to find the official history of this feature… so I’m hoping this is the place.

Oh and lastly, if this is not available, what alternatives do developers have for cross-platform rating? I’ll take that answer in my post here: http://developer.coronalabs.com/forum/2012/12/09/app-url-launch-kindle-nook

Thanks,
Scott D Brooks [import]uid: 63276 topic_id: 24292 reply_id: 134389[/import]

This works as I’ve used it in my own apps.

What device are you getting this error on? If it’s an android app, do you have one of the app stores installed? For instance a phone purchased from a carrier might not have Amazon or Google Play installed.

[import]uid: 199310 topic_id: 24292 reply_id: 134409[/import]

Hey Rob,

As it turns out, the issue was a small bug in my code. Hooray! :slight_smile:

Since this feature isn’t formally documented, I have a couple questions about this new type of pop-up:

  1. Does “rateApp” work for all platforms? (iOS,google, samsung, kindle, nook)

  2. In the code above, “iOSAppId” & “nookAppEAN” is specified. Do I also need an ID # for Kindle & Samsung? What would those parameter’s be named?

  3. “androidAppPackageName” is mentioned in the post. If I left off all the andrioid based platform IDs, would the function still work… by just using the package name?

  4. Is “iOSAppPackageName” a valid property in the table? If so, same question as # 3, could I leave off the “iOSAppId” at let it trigger by the package name?

Thanks very much for illuminating this important feature. It will definitely come in handy.

Regards,
Scott D Brooks
[import]uid: 63276 topic_id: 24292 reply_id: 134453[/import]

My apologies… you linked to: http://docs.coronalabs.com/api/library/native/showPopup.html in my other post.

Google is still bringing up the old page at: http://developer.coronalabs.com/reference/index/nativeshowpopup

Hence my confusion… :frowning:

You should redirect old documentation URLs to the new ones. [import]uid: 63276 topic_id: 24292 reply_id: 134454[/import]

I’ll see if something can be done about that. [import]uid: 199310 topic_id: 24292 reply_id: 134556[/import]

If you setup 301 redirects in an .htaccess file on your server pointing from the old pages to the new, that’ll cascade to Google after a bit of time (and will redirect users from the old site to the new).

Thanks again for the help! [import]uid: 63276 topic_id: 24292 reply_id: 134586[/import]

I’m trying to track down complete documentation of this feature. I’ve seen some comments on the forums just a few months back from staff about there being the ability to go beyond e-mail and SMS, allowing for “rateApp” and “appStore” as name arguements to the native.showPopup() function.

In October, staff member Joshua Quick wrote this (http://developer.coronalabs.com/forum/2012/01/03/link-review-nook-are-intents-required-workarounds#comment-126018):

===============================================================

Just so you know, we did add the ability to display other apps in the app store. This was added as of daily build #912. That was a few weeks ago. Sorry about forgetting to inform you all.

The API documentation on our daily build page has been updated to reflect this newest change. It does a pretty good job describing how it works… but below is a quick example of the finalized API.

local options =  
{  
 iOSAppId = "1234567890",  
 nookAppEAN = "0987654321",  
 androidAppPackageName = "my.other.app.",  
 supportedAndroidStores = { "google", "samsung", "amazon", "nook" },  
}  
native.showPopup("appStore", options)  

The [lua]androidAppPackageName[/lua] is optional and allows you to specify the package name of another app. If you do not set it, then Corona will use your app’s package name by default.

We still support the [lua]“rateApp”[/lua] popup option to be backward compatible with what we had before. This will attempt to jump straight to the “Write Review” window on iOS 5 or lower systems. It turns out that this is not possible on iOS 6 or any other app store, so it will display the App Store Details window instead just like how [lua]“appStore”[/lua] works.

One more thing. Some people are getting their app’s rejected by Amazon because their [lua]supportedAndroidStores[/lua] lists both “google” and “amazon”, but it turns out that Corona guessed wrong and launched the Google Play store instead. There is no nice way for Corona to guess correctly which store it belongs to if the app was installed by hand (in this case the app reviewer). So, I recommend that you do separate builds per app store that you are targeting and set the [lua]supportedAndroidStores[/lua] to the appropriate store name. There isn’t really any other nice way of doing this… and it’s no different than what Java developers are doing who build with the Android SDK.

===============================================================

Looking at the official documentation, this feature is *not* documented, as described in this post, so either it was removed or the docs were never updated. I’ve tried both “rateApp” & “appStore” with native.showPopup() and have only see the following error:

ERROR: native.showPopup() does not support rateApp popups on this device.

Testing on the device also does not trigger a pop-up either. I’m using CoronaSDK 2012.971.

Can someone from the Corona team explain if this feature is in our out? I’m not sure if there’s any other official place where I can go to to find the official history of this feature… so I’m hoping this is the place.

Oh and lastly, if this is not available, what alternatives do developers have for cross-platform rating? I’ll take that answer in my post here: http://developer.coronalabs.com/forum/2012/12/09/app-url-launch-kindle-nook

Thanks,
Scott D Brooks [import]uid: 63276 topic_id: 24292 reply_id: 134389[/import]

This works as I’ve used it in my own apps.

What device are you getting this error on? If it’s an android app, do you have one of the app stores installed? For instance a phone purchased from a carrier might not have Amazon or Google Play installed.

[import]uid: 199310 topic_id: 24292 reply_id: 134409[/import]

Hey Rob,

As it turns out, the issue was a small bug in my code. Hooray! :slight_smile:

Since this feature isn’t formally documented, I have a couple questions about this new type of pop-up:

  1. Does “rateApp” work for all platforms? (iOS,google, samsung, kindle, nook)

  2. In the code above, “iOSAppId” & “nookAppEAN” is specified. Do I also need an ID # for Kindle & Samsung? What would those parameter’s be named?

  3. “androidAppPackageName” is mentioned in the post. If I left off all the andrioid based platform IDs, would the function still work… by just using the package name?

  4. Is “iOSAppPackageName” a valid property in the table? If so, same question as # 3, could I leave off the “iOSAppId” at let it trigger by the package name?

Thanks very much for illuminating this important feature. It will definitely come in handy.

Regards,
Scott D Brooks
[import]uid: 63276 topic_id: 24292 reply_id: 134453[/import]