Problems with RateApp Api

Hi Joshua,

I found this issue a couple of weeks ago when I was updating my code to use the built-in showPopup function instead of my old openURL code I had. This issue is not only related to “rateApp”, it also happens with “appStore”.
Since I’m on a tight Christmas deadline I came up with a solution that worked, and put this issue on a list for reporting to you later…sorry for that.

I do try to report bugs I find quickly, however writing code for a repeatable test-case isn’t always simple, and sometimes requires quite a lot of detective work just to get the test-case showing the problem. Like in this case where I’ve noticed different behaviors depending on which App Store apps that are installed, and which App Store version of my app I’m testing.

The package names of the App Store apps I have installed on both devices are:
Amazon: com.amazon.venezia
Google Play: com.google.process.gapps (this is an assumption taken from the Google Services process since I can’t find an explicit process for the Play Store)

If I remember correctly, the Amazon app store isn’t called on either device. The Google Play appstore is called on my Google Nexus 7, but not on my Samsung Galaxy S Wifi (YP-GB1)

I will make an official bug-report about this issue later. Most likely after Santa has been here :slight_smile:

[import]uid: 70847 topic_id: 32503 reply_id: 134267[/import]

No worries. I understand. Finishing your commitments will of course take priority. I really appreciate the info that you’ve provided me so far.

One question. How are you installing your app on your devices? Are you installing your APK via “adb install” or are you using an app to install your APK.

The reason I ask is that I think I see one flaw in our app store detection code. If the APK is installed by another app, then Corona assumes that it is a marketplace app such as Google Play, Amazon, B&N, etc… in which case Corona does not have to “guess” which marketplace it came from and show the app store that installed your APK. Here is where the possible flaw is. If the app that installed your APK could not be identified as a supported app store, then nothing will be shown. Now, we did this on purpose in case the APK is being distributed by a marketplace that we do not support, in which case returning false is the right thing to do. I’m not sure if this is really a flaw or not, because from one perspective, it makes sense to do this… but it would definitely catch you off guard during testing if you are using a 3rd party app simply to side load your app during testing.
[import]uid: 32256 topic_id: 32503 reply_id: 134270[/import]

I’m installing my apps with “adb install”.

I just want to say that having to write code with a test-case is a good thing, even though it can feel a bit frustrating at times. There have been cases where I thought I found a bug, and while writing a test-case I found that it was my fault, not Corona SDK. It slows down the reporting process somewhat, but at the same time it forces a more accurate picture of the problem.

…now back to coding my million-dollar apps :wink: [import]uid: 70847 topic_id: 32503 reply_id: 134273[/import]

I am installing multiple ways, but my query referred to apps installed directly from the Amazon store.
My amazon app package name is uk.amazon.mShop.android.

I’m also finding now that both “rateApp” and “appStore” are not working correctly for me on the Nook Color, after installing using adb.
Both popups (after a loooooong pause) give me a popup that says “Service Unavailable”.

Our nook app is already available in the nook store so there is a live app to fetch the details from (and I’m 99% sure I’m using the correct EAN on the showpopup() options), however it is only available for the new HD nooks so maybe that’s why I get nothing back on the Nook Color? [import]uid: 84115 topic_id: 32503 reply_id: 134625[/import]

If you install your APK via the Android SDK tool “adb install”, then Corona will be able to successfully find the app store. If you install your APK via another app, then you will run into the problem that I mentioned up above. So, I suggest that you give the “adb install” command line a go.

Regarding the long delay on the Nook, I’m quite sure that is not caused by Corona. I’ve had a look at the log file from other Corona developers and the Corona app gets suspended immediately, but the long delay comes afterwards which means it is caused by the app store (or the OS). We are not able to reproduce this issue on our end… and I’ve contacted Barnes and Noble’s tech-support team about this and they were not able to reproduce it either. So, it might just be an issue with your one particular device, because the app store launch fast on my Nook Color. I’d love to know why it is so slow to launch on your Nook Color, but until we can reproduce it, there is nothing more that we can do. Anything you can do to isolate it on your end would be greatly appreciated.

[import]uid: 32256 topic_id: 32503 reply_id: 134669[/import]

Sorry I should’ve said that I also thought the long delay was either the store of the OS, because the app’s bgm stops immediately. [import]uid: 84115 topic_id: 32503 reply_id: 134672[/import]

Do any other Nook apps have the same delay issue on your Nook Color? I’m not talking about your Corona made apps, but other apps you might have downloaded. Also, is it slow to launch the Nook’s app store in general on your device?

What I’m trying to identify here is if your access the Nook app store is slow in general for all apps or is it isolated to only the apps you’ve “side loaded” onto the Nook. Perhaps how you’ve install your APK might be a factor too. I always install APKs onto the Nook via “adb install”. Are you installing your APK via another means? This might explain why we and B&N’s tech-support team can’t reproduce it. [import]uid: 32256 topic_id: 32503 reply_id: 134678[/import]

I am installing multiple ways, but my query referred to apps installed directly from the Amazon store.
My amazon app package name is uk.amazon.mShop.android.

I’m also finding now that both “rateApp” and “appStore” are not working correctly for me on the Nook Color, after installing using adb.
Both popups (after a loooooong pause) give me a popup that says “Service Unavailable”.

Our nook app is already available in the nook store so there is a live app to fetch the details from (and I’m 99% sure I’m using the correct EAN on the showpopup() options), however it is only available for the new HD nooks so maybe that’s why I get nothing back on the Nook Color? [import]uid: 84115 topic_id: 32503 reply_id: 134625[/import]

If you install your APK via the Android SDK tool “adb install”, then Corona will be able to successfully find the app store. If you install your APK via another app, then you will run into the problem that I mentioned up above. So, I suggest that you give the “adb install” command line a go.

Regarding the long delay on the Nook, I’m quite sure that is not caused by Corona. I’ve had a look at the log file from other Corona developers and the Corona app gets suspended immediately, but the long delay comes afterwards which means it is caused by the app store (or the OS). We are not able to reproduce this issue on our end… and I’ve contacted Barnes and Noble’s tech-support team about this and they were not able to reproduce it either. So, it might just be an issue with your one particular device, because the app store launch fast on my Nook Color. I’d love to know why it is so slow to launch on your Nook Color, but until we can reproduce it, there is nothing more that we can do. Anything you can do to isolate it on your end would be greatly appreciated.

[import]uid: 32256 topic_id: 32503 reply_id: 134669[/import]

Sorry I should’ve said that I also thought the long delay was either the store of the OS, because the app’s bgm stops immediately. [import]uid: 84115 topic_id: 32503 reply_id: 134672[/import]

Do any other Nook apps have the same delay issue on your Nook Color? I’m not talking about your Corona made apps, but other apps you might have downloaded. Also, is it slow to launch the Nook’s app store in general on your device?

What I’m trying to identify here is if your access the Nook app store is slow in general for all apps or is it isolated to only the apps you’ve “side loaded” onto the Nook. Perhaps how you’ve install your APK might be a factor too. I always install APKs onto the Nook via “adb install”. Are you installing your APK via another means? This might explain why we and B&N’s tech-support team can’t reproduce it. [import]uid: 32256 topic_id: 32503 reply_id: 134678[/import]