Network: IoTeX Mainnet
1. Download/Install
- iOS: Please give us your Apple ID to invite you.
- Android: https://metapebble.s3.ap-east-1.amazonaws.com/meta-pebble/meta-pebble-release.apk
- ioPay: build > 21
2. Create Pebble
- If you initialize the APP for the first time, Meta Pebble will automatically create a new IMEI and SN for you.
- The IMEI and SN is tied to the mobile, never changed after created.
3. Connect Wallet
- Click 'Register Device' to connect to your wallet (if you use Android for testing and cannot jump to ioPay, you need to go to the settings center to cancel the original 'default' wallet), currently we support ioPay and MetaMask..


4. Active Device
-
Click the 'Register', and pebble will jump to your wallet to execute the relevant contract.

-
After completing the register action, the pebble app will query the status of device, which may be slow.

5. Upload Location Data to Server
- Allow Meta Pebble to use your location data
- Turn on the button in the home screen, the GPS data will be uploaded to the server repeatedly


6. Check GPS
- Pebble will upload your GPS data to the portal and you can check your GPS data on the web and map.
https://example.metapebble.app/
1. Permission Settings (WIP)
- Developers will register with MetaPebble service and get an app token.
- Every query needs an app token to identify the app.
- An app can only query data under users' permission.
- User will give permission on a permission setting website on MetaPebble.
2. Create App
- Go to https://oauth.metapebble.app/
- Create app via input name and logo url
- Get the app secret

3. Query data via app secret
- Go to https://graphiql-online.com and using graphql api endpoint(https://dev.metapebble.app/v1/graphql)
- Use the app secret to query data (authorization: Bearer ‘secret’)

Example query
query {
oauth_device(limit: 20, order_by:{created_at: desc}){
id
owner
deviceRecord(limit: 20, order_by:{created_at: desc}){
latitude
longitude
}
}
}
1.Connect wallet which register a metapebble here: https://example.metapebble.app/

2.Click Authorize, select Metapebble as provider.

3.Check the uploaded data from the authorized app or your wallet on the map.