‘This application does not exist’ while uploading app to app engine - java

When I upload using graddle ./gradlew backend:appengineUpdate I get 404 Application does not exist. That's not true. App exist and the app id is fine.
What is the reason of getting this?

This is something that might help if you tried all the other ways found on the internet, but you can aswell try it as the first one.
If you are sure the app id is correct and your app exist this error will sound stupid. In fact this is something related to the ouauth.
Open console and look under your home directory for files starting with .appcfg_oauth2. Delete them.
Now try to reupload your app again. If you use gradle and making a java backend it will look something like
./gradlew mybackendapp:appengineUpdate
At some point you’ll be redirected to the browser, when you should login to proper Google account. When you do that you’ll get some weird string, which they wan’t you to copy into app. But where….? Don’t worry, just get back to the console and paste this into it. The process of uploading should continue and finish… successfully this time.

Related

How to update android app without google play

I'm developing an android app that won't be downloaded via the Google Play store but instead through an APK listed on my website. I was looking for a way to update this app.
I've done some research and I think the best way would be to run an API at the start of the app that checks the downloaded app's version against the version of the APK listed on the website (at the time of app launch). If the version of the website APK is higher, then I prompt the user for an update. Ideally the API would get the APK itself without the user needing to go to the website.
I have some doubts about this that I hope someone can answer however:
First - Once I download the new APK does the old one get deleted or do I have to do that?
Second - How do I keep User Preferences?
If this isn't the right way to do it I'd appreciate any tips.
If it is the right way and you know of some good resources to build an API like this I'd appreciate those too!

code for google app engine using maven

I have been following the steps to create a google app engine app using maven. https://developers.google.com/appengine/docs/java/endpoints/getstarted/backend/auth
I am on the step to deploy using mvn appengine:update but once it gets to the point where it says Updating Google App Engine Application there is a prompt that says Please enter code:. I can not find any documentation on what this code is supposed to be. I can deploy it to the devserver and use localhost:8080 just fine. Does anyone know what this code is supposed to be?
I found the code. I did not realize that Firefox was being opened in the background. From Firefox I was supposed to accept the permissions and it would then supply the code.

how to Login Wordpress,get dashboard content and redirect to my android app?

So,
I am trying to make an android app for my client who has a e-commerce website. For that I have to get his details from his dashboard and somehow fetch it to graphs in the app.
For this I have to make him login, and then get his details. But till now, I am not able to get my work done. Initially I tried Login to his website through java, but failed. Then I tried Json Api as wordpress plugin , but I was told its not secure. Then I move on to phoneGap, and the login part is done.
But,now the problem is. After he login, I was not able to redirect him to my app. To overcome this, I thought to open page in IFrame and use some logic through Js/JQuery, But then Another thing come in my way as "Same-Origin-Policy". To get through this, I tried to use JSONP, which till now, I am unable to use. I don't know which PHP file to change in wordpress or what. I am now feeling so much lost, and don't know how to get this work done.
If any one could t ell me whats the best way to do this, and if please provide with explainable snippet.. It would be very much helpful
Thankyou

Android Mobile Push App example from Amazon Web Services

Have anyone tried to add AndroidMobilePushApp (is provided by AWS) into Eclipse IDE, follow by this tutorial (http://docs.aws.amazon.com/sns/latest/dg/mobile-push-gcm.html) and able to get registrationID for the Amazon Mobile Push app?
I am able to add AndroidMobilePushApp into Eclipse along with 2 extraneous library .jar (android.jar, google-play-service) without any error, created Google API project on Google APIs Console website and copied that project_number into [res/values/strings.xml] according step 3 from the tutorial above. However, when I deploy the application into an Android device (Version 2.3.6 and API level 10), the app does show up,but it doesn't run when I click on...with error says " The application Amazon Mobile Push ( process com.amazonaws.androidtest) has stopped unexpectedly. Please try again! " so It won't able to give me back registration ID as step 4 from the tutorial above.
Any idea why?
Thanks,
Don
I had trouble w/ that sample code also. I finally got AndroidMobilePush to work but not SNSMobilePush in the same tutorial.
Hard to tell what you have done or left out, but I can give you some ideas of where to look:
Check if you have changed package names any place.
I had to declare the PLAY_SERVICES_RESOLUTION_REQUEST = 9000; constant needed in checkPlayServices()
Make sure you have not blocked execution of checkPlayServices and register()
I would set a Log filter to make sure you are at least getting that far. Then, of course, set another to capture the registrationID so you can save it to log.txt. Copy that and supply it to the SNS Console in AWS when you Add Endpoints.
Read carefully Step 3, point 4 and associated image.
If you remove android.jar from the export list, your app will run fine

Getting facebook deeplinks to work on emulator facebook android

The problem I'm trying to solve- I'm trying to get deep linking working, and testing it with Emulator. When clicking on posts, the links direct to the mobile web site. This is in the case of the user having permissions for the app, and the app is installed (on the emulator). In the Facebook app, it even acknowledges its out of date, but an upgrade (in app) crashes.
I also noticed that the Facebook app installed on the emulator is out of date (I installed it via adb install facebook.apk from github sdk).
SSO is working fine, and I have setup deeplinking effectively with iOS before (So I know how ti's supposed to work/test it, etc.). But the port to Android is being held back by this out of date 3rd party Facebook app. I'm assuming testing on device will solve it, because there the Facebook app will be the latest (which brings to mind- what if people haven't updated their android facebook app?).
My app settings:
I'd post code, but this seems to be pure integration and configuration issues.
Note: my app isn't published on Google Play, could that be the issue?
Also: maybe this is only testable on the device? My device is "in the mail" so trying to get this done with emulator as much as i can.
Update: Facebook told me that this requires the Facebook app 1.9.* which is not in the SDK. So, I got my hands on a device, and while I haven't solved it, at least the app bookmark functionality is working. Will update if/when I find the answer.
Update 11am: I finally got it to work!
I had to publish my app in the Play/Market.
Each time I tested, log out of FB-Android app, clear cache, and force stop. Acc.
to the documentation the bookmarks are cached. I also think the
facebook app-syncing occurs on launch, and never again. So if you
change anything in FB's app settings, you need to log out/clear
cache/stop for it to take in the fb android app.
Only one key worked, even though it says "hash" in the fb app settings, I think
my dev key was screwing things up. Double-confirm that your release
key is the same as the one listed in app settings.
The final secret sauce for me, was to turn off SSO and deeplinking, re-test
without anything set. Also, remove dev package from phone and
download from Play. (see: key mixups). then, I stepped back through
the configurations by first turning on SSO, testing, then turning on
the native deep linking.
Only works on real device, not emulator (unless you can get 1.9 installed on emulator, may work, did not go down that route to test)
Not sure if this matters, but it may: install app from Store/Play, not from Eclipse. Could be the key syncing thing.
I figured it out- involved doing the following:
I had to publish my app in the Play/Market.
Each time I tested, log out of FB-Android app, clear cache, and force stop. Acc. to the documentation the bookmarks are cached. I also think the facebook app-syncing occurs on launch, and never again. So if you change anything in FB's app settings, you need to log out/clear cache/stop for it to take in the fb android app.
Only one key worked, even though it says "hash" in the fb app settings, I think my dev key was screwing things up. Double-confirm that your release key is the same as the one listed in app settings.
The final secret sauce for me, was to turn off SSO and deeplinking, re-test without anything set. Also, remove dev package from phone and download from Play. (see: key mixups). then, I stepped back through the configurations by first turning on SSO, testing, then turning on the native deep linking.
Only works on real device, not emulator (unless you can get 1.9 installed on emulator, may work, did not go down that route to test)
Not sure if this matters, but it may: install app from Store/Play, not from Eclipse. Could be the key syncing thing.
Have you had a look at the troubleshooting tips for deep linking? (Sorry, have to ask.)
I'm wondering if perhaps the FB app on your device was not properly quit after the relevant setting changes.

Categories

Resources