App settings will be added to the AppStore section in gksphone/config/config.json or see the
name => Uniq Custom Name
icons => Icon of the app
categori => In which category the app will appear ( jobs, mix, social, finance )
appurl => You should write the file path of the resource you want to run in the application ( If you want to add a site, make sure it has iframe support )
url => Don't touch this part
blockedjobs => Jobs that will not see the app
allowjob => Only jobs that can see this application
var timeout = 2000
window.gksphone.notify("This is a notification message", timeout);
Call
const phoneNumber = "55555" // Number to call
const anonymous = false
window.gksphone.calling(phoneNumber, anonymous);
Video Call
const phoneNumber = "55555" // Number to call
window.gksphone.videoCall(phoneNumber);
Camera Open
const PhotoActive = true // Photo option on or off
const VideoActive = false // Video option on or off
const photourl = window.gksphone.CameraOpen(PhotoActive, VideoActive);
console.log(photourl) // Link to the photo or video taken
Get Gallery Poup
const onlyVideo = true // Show video in options?
const onlyPicture = true // Show photo in options?
const multiple = false // Select multiple images or videos
const camera = false // Camera shooting option on/off
const photourl = window.gksphone.GetGallery(onlyVideo, onlyPicture, multiple, camera);
console.log(photourl) // { data = link, opencamera = true/false }
// When the camera icon is clicked, "opencamera" returns true
// The data section contains the selected image or video link.
// If the camera option is clicked, it will return false.