TODO: Write a project description
TODO: Describe the installation process
import random | |
from time import sleep | |
import os | |
def clear_screen(): | |
if os.name == 'nt': | |
os.system("cls") | |
else: | |
os.system("clear") |
import push from '@service.push' |
push.subscribe({ | |
success: function(data) { | |
console.log("push.subscribe succeeded, result data=" + JSON.stringify(data)); | |
}, | |
fail: function(data, code) { | |
console.log("push.subscribe failed, result data=" + JSON.stringify(data) + ", code=" + code); | |
}, | |
complete: function() { | |
console.log("push.subscribe completed"); | |
} |
push.on({ | |
callback: function (ret) { | |
console.log("received pass through message, ret=" + JSON.stringify(ret)); | |
}, | |
complete: function () { | |
console.log('push.on completed'); | |
} | |
}); |
push.off(); |
{ | |
"package": "com.sezerbozkir.quickappwithlocationkit", | |
"name": "QuickAppwithLocationKit", | |
"versionName": "1.0.0", | |
"versionCode": 1, | |
"icon": "/Common/logo.png", | |
"minPlatformVersion": 1075, | |
"features": [ | |
{ | |
"name": "system.geolocation" |
<template> | |
<!-- Only one root node is allowed in template. --> | |
<div class="container"> | |
<text class="title">Location Finder</text> | |
<text>To find your place in the application, firstly press the "Obtain the geographical location" button. Then click the "show my location" button. | |
After your location is determined, "Get information" will be automatically called for information about the location. | |
</text> | |
<input type="button" class="mybutton" onclick="getGeolocation" value="Obtain the geographical location." /> |
import geolocation from '@system.geolocation' |
<script> | |
import geolocation from '@system.geolocation' | |
import prompt from '@system.prompt'; | |
module.exports = { | |
data: { | |
information: {}, | |
received_data: "", | |
lat: 41.029032, | |
lon: 29.117621 | |
}, |