Any idea why itâs showing No Device when I have created an Android Virtual Device?
Hello @dylanp
What I know is if you using a real phone, it works. You can ask your question on the new jasonelle channel https://web.telegram.org/#/im?p=@jasonelle
or on Android forum or Android Central
So Iâve been playing around with this over the past couple weeks, and I can say that itâs more of a pain that their site makes it out to be, so having a plugin to do it automatically would be very nice.
For those of you stuck on various things, Iâll do my best to provide some insights:
Android:
The android version doesnât have a setup script, but thatâs ok. You can just import the project using android studio, and change a couple variables (the name, urls, and package name) and youâre pretty much good to go.
iOS:
The setup script on the iOS versions is under the legacy folder, as someone pointed out above. In my experience, the script is broken. Taking a look through it, I think it might have something to do with the fact that the directory structure of the project has changed from when it was first written (at least in version 2.0). In order to get it to work, I followed the instructions for manual setup here:
https://jasonelle.com/jasonette-old-docs/ios/#manual-setup
IMPORTANT: Open the Jasonette.xcworkspace file, NOT the Jasonette.xcodeproj file. The iOS project is setup using cocoapods, and if you open the xcodeproj file directly it will fail to build. Once youâre all set up, you can change the name and url in the settings.plist and info.plist files in Xcode, detailed in the link above.
I also found this stack overflow post detailing how to change the overall project name. This also provides instructions on how to change the package id:
Although it is a cocoapods project, I ended up not having to clear and reinstall pods to get it to change. I also didnât change the name of the âJasonetteâ subfolder (the one with Actions, Components, Core, Services, Tests, Views, and Info.plist).
ONE MORE THING: If, like me, your xcode simulator wouldnât launch the app after pressing play, go into your schema editing and under run -> Build Configuration: Debug, select the .app executable. Then save the schema and choose an iphone variant for your simulator.
preload.json
I have found using Jasonelle for android v 2.1 (also seems to be an issue in v2.0) that the preload.json file which is supposed to show a screen while the app is loading doesnât seem to ever be displayed. I let them know about this in their telegram channel and they are yet to look into it thoroughly, so we might just have to accept not being able to have a loading screen for now. I havenât tried any of this on the iOS version, I wouldnât even know how.
Now an unrelated issue:
Has anyone here managed to get google OAUTH authentication working with bubble + Jasonelle? I am using the Google sign-in plugin, but it seems that Google disallows oauth from within webviews and other embedded browsers. Short of spoofing the user agent, I donât know how Iâd go about addressing this.
EDIT: Removed unnecessary quote of myself
Hello @austin3
Excellent update. Have you asked if it was possible to do Google OAUTH inside Jasonelle? I hope you will find a solution and share it. If you are interested in the new Jasonelle plugin, it will be able to correct your need.
Jul 14 update: 19 on 40. Please help!
Hello @JohnMark and everyone else
I know we are waiting for the plug-in, but as that may still take a while I am struggeling to get this to work for Android. I have the most recent Andoid studio, I have v2.0 of Jasonette-Android-Master and the demo runs nicely.
Yet, when I replace the file name and set-up the jasonelle Return data from API workflow I keep getting an âofflineâ on the android virtual device.
Here is the code in the jasonelle API
And this is a screenshot from the android studio
Any suggestion what needs to be tweaked? I am a bit lost.
Thank you
Hello @jamesrizziandme
Bubble doesnât support the GET command. You must convert it to a POST. I used Integromat to convert as explained above in this forum. Welcome to Bubble
Jasonelle wasnât compatible with Bubbleâs API endpoint, thereâs this new version of Jasonelle that our plugin efforts could create that is compatible with the endpoint but it hasnât been released in the main version yet, Iâm using it to develop the plugin.
Later we wonât need to involve third party tools, so thereâs a good future ahead (:
Hi @JohnMark
Really appreciate your help, especially since questions tend to repeat ⌠thread is pretty long, sorry. I got the Integromat going (as described) and at least the virtual device is not showing âofflineâ anymore, but now am getting a white screen âŚ
Any final thoughts? (except that I will check the donation page)
Brainless Step-by-Step to build and run on Android
-
Create an
index.json
{ "$jason": { "body": { "background": { "type": "html", "url": "<your-web-app-url>", "action": { "type": "$default" } } } } }
-
Upload the
index.json
to a place where is public accessible.- Example 1
- Go to Bubble App -> Settings -> SEO / metatags -> Hosting files in the root directory.
- Upload
index.json
. - Publish Bubble App and get the URL of
index.json
.
- Example 2
- Upload
index.json
to any cloud storage service. - Make
index.json
to be public accessible. - Get the URL of
index.json
.
- Upload
- Example 1
-
Get
jasonette-android
source code$ git clone https://github.com/jasonelle/jasonette-android
-
Update
strings.xml
.$ cd jasonette-android/app/src/main/res/values/
$ vim strings.xmlThen replace âfile://jason-app.jsonâ to the URL of your
index.json
, so that your App can find theindex.json
in runtime. -
Build and install the APK to your Android phone.
Some community friends might be confused like
- Can not find the setup file mentioned in the 1st post?
- What is the file I need to modify and add my index.json in jasonette-android?
Hoping that this summary is helpful for you.
@JohnMark, Does Jasonelle allows the use of GPS live tracking on the background for Android and IOS?
Interested
Loved the guide! I just got amused atâŚ
Not brainless hahah
But I got the idea.
@marcos Iâll be able to answer you that in about a month from now. Stay tuned!
Thanks man! Keep up the good work! Is the plugin already available for testing?
Hi @marcos
Yes, you can switch GPS tracking under Jasonelle to Bubble. I gave an example with the recording in this post, itâs the same principle for passing values. You have to read Jasonelleâs doc.
And about the plugin, more or less in the same time frame mentioned it will be, for contributors.
The doc was behind a slack website, is it on a different address as well?
I found it. Thank you!
Hello @marcos
Maybe you can sponsor the GPS portion with Jasonelle team?
âyou would need to code a native code (java, objective-c) extension that you could call with json. it possible to do that. But it would require more technical expertiseâ
What is your plan? Happy you found the doc.