Page 1 of 1

OAuth integration tutorial question

Posted: Sun Jan 18, 2015 1:21 pm
by Jo

I'm trying to follow the oauth.io integration tutorial:
http://devcenter.appery.io/tutorials/...
, and as I understand it, I need to use the phone gap plugin and not the web app option since I want a mobile app. However, the folder structure that the tutorial lists is not at all like what I get in my project

eg, in this image: http://devcenter.appery.io/wp-content...

I do not have the folders that are in black other than the top BarcodeScanner folder.

and also, I do not see the cordova_plugins.js file that is mentioned.
ANDROID OAuthApp Assets www files resources lib cordova_plugins.js.

Also, the tutorial seems to be only for Android. How do we get it to work on the IOs?

Thanks.


OAuth integration tutorial question

Posted: Mon Jan 19, 2015 4:29 pm
by Evgene Karachevtsev

Hello Jo,

1) Sorry for delay. Could you please send us a screenshot of your Source tab structure?
2) Unfortunately you can't add a plugin in Appery.io for an .ipa file. You should export it as xCode project and add a plugin there.


OAuth integration tutorial question

Posted: Tue Jan 20, 2015 2:05 am
by Jo

Hi Evgene,
A screenshot of my folder structure is attached.

Image

Also, I had to create all the folders in the ParkX hierarchy, including the ParkX (name of my app) folder by hand.

I tried creating a new app and there I saw that the folder structure is as mentioned in the tutorial. However, most of the development work I've done is in the ParkX project and to start a new app from scratch will be quite a task, just for this feature.

I'm not quite sure how my app folders vanished, but it is possible I messed around with the folders and inadvertently deleted them.
So, my questions is, how can I get back the original folders and is there an easy workaround.

Thanks.


OAuth integration tutorial question

Posted: Tue Jan 20, 2015 4:11 pm
by Maryna Brodina

Hello!

To get original folders structure you would have to delete edited (blue colored) files and undo all source changes.

Here is more information http://devcenter.appery.io/tutorials/...


OAuth integration tutorial question

Posted: Tue Jan 20, 2015 5:32 pm
by Jo

It turns out that somehow all the folders within my app folder got moved up one level into the ANDROID folder as seen in the screenshot in my previous post.
I created a new folder for my app and moved back all those folders and was able to make the necessary changes to make progress with the tutorial.

Thanks for all the responses.


OAuth integration tutorial question

Posted: Tue Jan 20, 2015 6:19 pm
by Jo

Maybe this is not the correct thread to ask, but I managed to finish the tutorial and I want to test out the oauth.io feature, but I see that I need to build a native app to test it, and when I try to build a native app, I'm told that I need a certificate.

My question is, can I create an unsigned apk using appery ? I've seen many apks that one can install directly on android devices by allowing installations from "untrusted sources". I understand that these are not signed, so would like to do the same with my appery app.


OAuth integration tutorial question

Posted: Tue Jan 20, 2015 6:25 pm
by Evgene Karachevtsev

OAuth integration tutorial question

Posted: Wed Jan 21, 2015 12:45 am
by Jo

Great! I managed to generate a certificate and could get past the initial error that was caused because I didn't have a certificate.

However, now I get the error as seen here:

Image

Now since the error message is not very informative, I don't really know what to do.


OAuth integration tutorial question

Posted: Wed Jan 21, 2015 7:27 am
by Maryna Brodina

Hello!

Please share your app with a href="mailto:support@appery.io" rel="nofollow"support@appery.io/a and let us know it's name.


OAuth integration tutorial question

Posted: Thu Jan 22, 2015 6:31 am
by Jo

Turns out I needed to delete all the blue folders, then "Undo all source changes" and then it built fine.

Thanks again to the awesome appery support.