{kind: "enyo.AppMenu", components: [ {caption: "Menu item 1", ontap: "tapOpenMenu1"}, {caption: "Menu item 2", ontap: "tapOpenMenu2"}, {caption: "Menu item 3", ontap: "tapOpenMenu3"}, {caption: "Menu item 4", ontap: "tapOpenMenu4"}, ]}Here is how I am trying to integrate PalmService:
{kind : "enyo.PalmService", name : "launchApp", service : "palm://com.palm.applicationManager", method : "launch", onSuccess : "launchAppSuccess", onFailure : "launchAppFailure", subscribe : true }, [...] var params= {"summary":"Bla bla bla, email subject line", "text":"Bla bla bla, email body"}; this.$.launchApp.call({ "id": "com.palm.app.email", "params":params}); [...] var params = { "scene":"page", "target":"... my palm store URL ..."}; this.$.launchApp.call({ "id": "com.palm.app.enyo-findapps", "params":params});Neither of these approaches are working. I don't see any error messages in the palm logs. Do you have any tips?
It looks like you're new here. If you want to get involved, click one of these buttons!
Comments
john
https://github.com/webOS-ports/org.webosports.update/blob/master/app/source/UpdateApp.js
I'm not sure, why, but on my PalmService kinds I do "send", not call. This worked for me on 3.0.5 and open webOS.
This uses the app menu and worked on webOS 3.0.5:
https://github.com/webOS-ports/preware/blob/master/source/App.js
A different ontap for every app menu-entry worked for me... not sure what should be wrong in your code.
But in regards to PalmService, I'd like to refer you to http://webos-ports.github.io/webos-lib/#enyo.PalmService the documentation page. send() is the function to execute the service request (with request parameters passed there. And instead of onSuccess/onFailure/onComplete, it uses onResponse, onError, and onComplete.
it seams to have got lost some were. its missing in the webos-ports-template right now but i have a pull to fix it and up date to current enyo
john
john