I have created app in Predix Mobile that is working fine, but I do not have any idea how to give it logout feature as at the time of login I have to login in Predix provided login page.
pls help on this.
Answer by Swapan Gosh · Apr 07, 2016 at 12:51 PM
Please refer to the documentation of Predix Mobile SDK (https://github.com/PredixDev/PredixMobileSDK)
Please go to the wiki page - https://github.com/PredixDev/PredixMobileSDK/wiki/Boot
From your mobile web app, you can call Boot Restart, which will stop all the back-end services and unload all web apps and take you back to the login screen. You need to login again to start the web app.
This is a way to implement logout using Predix Mobile services.
one more doubt,
In Predix Mobile is there any plugin which I can add in our app and get able to interact with device's camera, microphone etc.
or I need to write code in native only.
We have examples which illustrate extending our native integration. Here's an example using the camera: https://github.com/PredixDev/MobileExample-iOSService-Camera
Yes, I saw that using native code, but is there any plugin using which we can interact with device by using js. Like we do in hybrid app build using Cordova