science
Code Playground
Test shift2appjs functions interactively
Interactive Playground
Run code and see results
info
Test in Your App
This playground works best when viewed inside your Shift2App. In a regular browser, shift2appjs will be simulated.
Live Code Editor
Output:
Example Snippets
Click to load into playground
đ Show Toast
shift2appjs.showToast("Hello!")
đą Get Device Info
JSON.parse(shift2appjs.getDeviceInfo())
đ Check Battery
shift2appjs.getBatteryLevel()
đž Storage Example
setItem / getItem
đ Network Status
shift2appjs.getNetworkStatus()
âšī¸ App Info
shift2appjs.getAppInfo()