Link to Review on NOOK - are intents required? Workarounds?

The only app store that allows you to display app details within your own app is the Barnes & Noble app store. All other stores display app details within their own “App Store” application. There is no work-around for this. That is just how Apple, Google, and Samsung made it. So, expect your app to get suspended when using this API.

We’ve noted this behavior in our API documentation via the link below. Please see the last sentence.
http://docs.coronalabs.com/api/library/native/showPopup.html#show-app-details-or-rate-an-app-in-the-app-store

I hope this helps! [import]uid: 32256 topic_id: 19903 reply_id: 134531[/import]

I’m noticing strange behavior with the latest daily builds and showing the app store popup on Nook Color. With latest build 996 the app store pops up within 2 seconds, but when I close the store my app doesn’t fully recover from it’s suspended state. It becomes a black screen except for a native text field. I tried redrawing the storyboard scene after a delay after detecting the system resume from suspend but that didn’t help.

However, on build 992, using the same code, the app recovers correctly from the suspended state immediately after closing the app store. The only problem is there is a delay of 8 - 30 seconds for the store to appear when the store popup is triggered. Prior builds also have a noticeable delay on opening the store, but do recover from the suspended state.

[import]uid: 9422 topic_id: 19903 reply_id: 136845[/import]

I’m noticing strange behavior with the latest daily builds and showing the app store popup on Nook Color. With latest build 996 the app store pops up within 2 seconds, but when I close the store my app doesn’t fully recover from it’s suspended state. It becomes a black screen except for a native text field. I tried redrawing the storyboard scene after a delay after detecting the system resume from suspend but that didn’t help.

However, on build 992, using the same code, the app recovers correctly from the suspended state immediately after closing the app store. The only problem is there is a delay of 8 - 30 seconds for the store to appear when the store popup is triggered. Prior builds also have a noticeable delay on opening the store, but do recover from the suspended state.

[import]uid: 9422 topic_id: 19903 reply_id: 136845[/import]

Stephen,

I’m investigating this issue now.

Unfortunately, I can’t reproduce the 8-30 second delay issue using build #996 or older builds. Neither can B&N’s tech-support team. I believe the issue is real because a few others have reported this delay issue as well, but we’re still not sure how to reproduce it. It bothers me that you say this issue has gone away in build #996 because we did nothing to address it. Hmm…

Regarding the screen turning black, I’ve discovered that this will only happen to apps that are landscape only using daily build #996. What’s happening is that the OS is forcing the landscape only app to be displayed in portrait when display the store details window. I can’t prevent that from happening. I’ve noticed that a couple other devices exhibit this behavior as when transitioning from a landscape app to a portrait app (and vice-versa). So, in build #996, we attempted to remedy this issue by hiding Corona’s view until the OS finishes the transitions back to the app’s supported orientation. We hide the view so that your landscape view won’t be shown on a portrait screen (which looks really bad) and we also prevent the orientation event from being sent to Lua which was confusing Corona developers as well.

So, it looks like we need to tweak our fix in build #996 a bit more, because while Corona has been proven to be resumed, the view is not be shown again. We’ll work on it this week. Thanks for bringing this issue up… and sorry about the inconvenience.
[import]uid: 32256 topic_id: 19903 reply_id: 137235[/import]

Hi Joshua,

Thanks for looking into this. In case it helps, here’s what’s happening for me with build 998 on a Nook Color device:

There’s a 1-3 second delay to start opening the app store after triggering it. (Not too bad)

On returning from the app store back to my app the screen goes black. (My app is landscape only.) Although the screen is totally black all buttons appear to be functioning, so the app has in fact returned but the screen is not being redrawn/refreshed.

My app also has a function to open a compose email screen, which, like the Store, is vertical orientation and takes over the device. After closing email my app returns correctly (no black screen) so perhaps whatever you’re doing to recover from email could also be done when recovering from the app store.

-Stephen

[import]uid: 9422 topic_id: 19903 reply_id: 137536[/import]

Stephen,

I’m investigating this issue now.

Unfortunately, I can’t reproduce the 8-30 second delay issue using build #996 or older builds. Neither can B&N’s tech-support team. I believe the issue is real because a few others have reported this delay issue as well, but we’re still not sure how to reproduce it. It bothers me that you say this issue has gone away in build #996 because we did nothing to address it. Hmm…

Regarding the screen turning black, I’ve discovered that this will only happen to apps that are landscape only using daily build #996. What’s happening is that the OS is forcing the landscape only app to be displayed in portrait when display the store details window. I can’t prevent that from happening. I’ve noticed that a couple other devices exhibit this behavior as when transitioning from a landscape app to a portrait app (and vice-versa). So, in build #996, we attempted to remedy this issue by hiding Corona’s view until the OS finishes the transitions back to the app’s supported orientation. We hide the view so that your landscape view won’t be shown on a portrait screen (which looks really bad) and we also prevent the orientation event from being sent to Lua which was confusing Corona developers as well.

So, it looks like we need to tweak our fix in build #996 a bit more, because while Corona has been proven to be resumed, the view is not be shown again. We’ll work on it this week. Thanks for bringing this issue up… and sorry about the inconvenience.
[import]uid: 32256 topic_id: 19903 reply_id: 137235[/import]

Stephen,

I found a way to reproduce that 10-30 second delay when opening the Nook app store. It turns out it only happens to landscape only apps. The Nook app store dialog only supports portrait and does not appear to like starting in landscape mode. So, I’m going to talk to B&N’s tech-support team about how to best work-around this issue and resolve it as soon as possible. I’m going to fix that black screen issue as well. [import]uid: 32256 topic_id: 19903 reply_id: 137743[/import]

I was one of the people reporting this issue and mine is landscape only as well :slight_smile: [import]uid: 32462 topic_id: 19903 reply_id: 137747[/import]

Oh good. Yeah, we just didn’t connect the dots at the time that this was a landscape only issue.
We’re on it. Thanks for your patience. [import]uid: 32256 topic_id: 19903 reply_id: 137759[/import]

Hi Joshua,

Thanks for looking into this. In case it helps, here’s what’s happening for me with build 998 on a Nook Color device:

There’s a 1-3 second delay to start opening the app store after triggering it. (Not too bad)

On returning from the app store back to my app the screen goes black. (My app is landscape only.) Although the screen is totally black all buttons appear to be functioning, so the app has in fact returned but the screen is not being redrawn/refreshed.

My app also has a function to open a compose email screen, which, like the Store, is vertical orientation and takes over the device. After closing email my app returns correctly (no black screen) so perhaps whatever you’re doing to recover from email could also be done when recovering from the app store.

-Stephen

[import]uid: 9422 topic_id: 19903 reply_id: 137536[/import]

Stephen,

I found a way to reproduce that 10-30 second delay when opening the Nook app store. It turns out it only happens to landscape only apps. The Nook app store dialog only supports portrait and does not appear to like starting in landscape mode. So, I’m going to talk to B&N’s tech-support team about how to best work-around this issue and resolve it as soon as possible. I’m going to fix that black screen issue as well. [import]uid: 32256 topic_id: 19903 reply_id: 137743[/import]

I was one of the people reporting this issue and mine is landscape only as well :slight_smile: [import]uid: 32462 topic_id: 19903 reply_id: 137747[/import]

Oh good. Yeah, we just didn’t connect the dots at the time that this was a landscape only issue.
We’re on it. Thanks for your patience. [import]uid: 32256 topic_id: 19903 reply_id: 137759[/import]

Everyone,

Daily build #1007 (released as of today) solves the following issues:

  • The 10-40 delay when display the Nook app store from a landscape app.
  • The Corona screen turning black when returning from the Nook app store to a landscape app.

Please give it a go and let us know if it solves the above issues for you too. I’m confident that it will. Thanks! [import]uid: 32256 topic_id: 19903 reply_id: 139499[/import]

George,

We just tested an old Corona build with the Vizio 8 Tab (a physical device and not via remote test service) and we were *not* able to reproduce this crash. We tested it with your ShaqDown app as well. So, I’m not sure what to make of that crash report other than today’s build does contain more error handling when creating a context and will hopefully prevent that issue we can’t reproduce. Not sure what else to do about it since we don’t have a reproducible case. [import]uid: 32256 topic_id: 19903 reply_id: 139516[/import]

Hi Joshua,

I just tested my landscape only app using build #1007 on a Nook Color and got only a few seconds delay to open the app store and success returning to the app (no black screen). So looks like your fix did the trick. Thanks!
[import]uid: 9422 topic_id: 19903 reply_id: 139646[/import]

Everyone,

Daily build #1007 (released as of today) solves the following issues:

  • The 10-40 delay when display the Nook app store from a landscape app.
  • The Corona screen turning black when returning from the Nook app store to a landscape app.

Please give it a go and let us know if it solves the above issues for you too. I’m confident that it will. Thanks! [import]uid: 32256 topic_id: 19903 reply_id: 139499[/import]

George,

We just tested an old Corona build with the Vizio 8 Tab (a physical device and not via remote test service) and we were *not* able to reproduce this crash. We tested it with your ShaqDown app as well. So, I’m not sure what to make of that crash report other than today’s build does contain more error handling when creating a context and will hopefully prevent that issue we can’t reproduce. Not sure what else to do about it since we don’t have a reproducible case. [import]uid: 32256 topic_id: 19903 reply_id: 139516[/import]

Hi Joshua,

I just tested my landscape only app using build #1007 on a Nook Color and got only a few seconds delay to open the app store and success returning to the app (no black screen). So looks like your fix did the trick. Thanks!
[import]uid: 9422 topic_id: 19903 reply_id: 139646[/import]