{"id":562,"date":"2020-02-13T11:20:03","date_gmt":"2020-02-13T10:20:03","guid":{"rendered":"https:\/\/asdw.de\/?p=562"},"modified":"2020-02-13T11:20:03","modified_gmt":"2020-02-13T10:20:03","slug":"vibrate-your-android-ios-smartphone-tablet-from-scriptcase-app","status":"publish","type":"post","link":"https:\/\/asdw.de\/en\/vibrate-your-android-ios-smartphone-tablet-from-scriptcase-app\/","title":{"rendered":"Vibrate your Android \/ iOS smartphone \/ tablet from Scriptcase app"},"content":{"rendered":"<div id=\"text_block-5-27\" class=\"ct-text-block\">Scriptcase is able to use internal functions of smartphones \/ tablets via WebApp development.<\/div>\n<div>For this the browser on the device is used (Chrome, Firefox, &#8230;)<\/div>\n<div><\/div>\n<div class=\"ct-text-block\"><b><span id=\"span-18-27\" class=\"ct-span\">Sample &#8211; vibrate:<\/span><\/b><\/div>\n<div><\/div>\n<div>Sample:<br \/>\nCreate a app of type control and add two buttons of type JavaScript.<br \/>\nAdd a simple line to each of them:<br \/>\nnavigator.vibrate(200); \/\/ This will give a short buzz<br \/>\nand<br \/>\nnavigator.vibrate([100, 200, 200, 200, 500]); \/\/ This will give a repeating buzz<\/p>\n<p>Make sure that the application is run with https:\/\/<br \/>\nAll browsers need secure connections for webapps.<\/p>\n<p>Obviously you could add JS methods in any Scriptcase control\/form and call them whenever you need, instead of using JS-buttons.<\/p><\/div>\n<div><\/div>\n<div class=\"ct-text-block\">Want to test the sample on your smartphone or tablet:<br \/>\n<a href=\"https:\/\/demo.scriptcase.coach\/control_vibrate\/\">https:\/\/demo.scriptcase.coach\/control_vibrate\/<\/a><\/div>\n<p><img decoding=\"async\" id=\"image-9-27\" class=\"ct-image\" src=\"https:\/\/scriptcase.coach\/wp-content\/uploads\/2019\/06\/scriptcase_coach_vibrate.png\" alt=\"WebApp Vibrieren\" \/><\/p>\n<div id=\"text_block-10-27\" class=\"ct-text-block\">\nLooks easy &#8211; and it is !<\/p>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Scriptcase is able to use internal functions of smartphones \/ tablets via WebApp development. For this the browser on the device is used (Chrome, Firefox, &#8230;) Sample &#8211; vibrate: Sample: Create a app of type control and add two buttons<span class=\"ellipsis\">&hellip;<\/span><\/p>\n<div class=\"read-more\"><a href=\"https:\/\/asdw.de\/en\/vibrate-your-android-ios-smartphone-tablet-from-scriptcase-app\/\">Read more &#8250;<\/a><\/div>\n<p><!-- end of .read-more --><\/p>\n","protected":false},"author":2,"featured_media":559,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[55],"tags":[157,158],"_links":{"self":[{"href":"https:\/\/asdw.de\/en\/wp-json\/wp\/v2\/posts\/562"}],"collection":[{"href":"https:\/\/asdw.de\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/asdw.de\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/asdw.de\/en\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/asdw.de\/en\/wp-json\/wp\/v2\/comments?post=562"}],"version-history":[{"count":1,"href":"https:\/\/asdw.de\/en\/wp-json\/wp\/v2\/posts\/562\/revisions"}],"predecessor-version":[{"id":563,"href":"https:\/\/asdw.de\/en\/wp-json\/wp\/v2\/posts\/562\/revisions\/563"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/asdw.de\/en\/wp-json\/wp\/v2\/media\/559"}],"wp:attachment":[{"href":"https:\/\/asdw.de\/en\/wp-json\/wp\/v2\/media?parent=562"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/asdw.de\/en\/wp-json\/wp\/v2\/categories?post=562"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/asdw.de\/en\/wp-json\/wp\/v2\/tags?post=562"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}