I am trying to include the shake plugin on a mockup app, but I am unable to get it to work.
The OnShake event handler is never fired, and when calling the CheckShakePlugin action i get an error 2 with the "Barcode Plugin is unavailable" error message. While I don't think this is related to the barcode plugin, I tried incorporating it into my app and I can successfully work with it, but get the same error with the CheckShakePlugin action.
Can someone give me a hint on what I might be doing wrong?
What kind of device are you using, iOS or Android? Can you provide an OML so we can help?
I'm using Android 4.4.2, and I've included the OML to this message.
That's weird... if I view the message on edit mode, it shows me it has an attachment.
I'll include it on this one as well.
Edit: The same thing happened on this message. I can view the attachment present, but on the board itself the attachment disappears.
Here is a link to the OML: https://dl.dropboxusercontent.com/u/6542909/MyMobileApp.oml
The attached appeared after a couple of minutes. I was able to run it and the Shake works (gives a message with "BarCode Status: Available Shake Status: Available).
To isolate the problem, can you:
This simple flow should look something like this:
Let me know if it works in the simple app.
"you must test in a generated application"
Does this mean this won't work in the Outsystems Now application? I tried installing the application from the generated APK, but I couldn't open the APK even though i'm allowing applications from unknown sources. Both me and a coworker had this issue, and was why I installed the Outsystems Now application in the first place.
The Shake Plugin is not included in the OutSystems Now tool because it's not currently supported. The list of supported plugins (that are also included in OutSystems Now) can be found here.
What error do you have installing your application? Does it also happen if you create a clean application with just the Shake Plugin?
I just get a generic "Could not open file" error, and yes, this happens both with the supplied OML and with a clean application.
César Afonso wrote:
Are you saying that only the default supported plugins work on Outsystems Now and for other (newly developed) plugins we should create our own native app that runs on our phones?
César, I found the answer in the link you sent: Community supported plugins: These plugins are also available on the forge, and are supported by our community. You’ll need to build your own native version of the application in order to test the plugin. The application will still run on OutSystems Now, but the plugin will not be available until you install the app on your device.
If you download the apk to your desktop and install from there, what happens? What's the size of the APK? Both your devices are 4.4.2? Can you try a different device?
I found out why I couldn't install the APK. Apparently, Android won't launch the installer if you try to open the APK file either through the notification area, or the download manager. You have to open it directly through the file manager.
After this, I've managed to successfully install the APK, thanks for the tips Cesar!
Good luck with the apps :)