You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Apr 8, 2021. It is now read-only.
I am using module 1.8.4 with SDK 6.1.1.GA
Here I am facing an issue with customActivity callback.
Even I am not able to get "customActivity" event fired on tap of customButton.
Code being used is as following.
vardownloadButton={title: "Download",type: "Download",image: "images/download.png",callback: function(){console.log("This is a customActivity to download report ");}};customButtons.push(downloadButton);Social.addEventListener("complete",function(e){Alloy.Globals.eventListenerAdded=true;console.log("complete: ");console.log(e);if(e.platform=="activityView"||e.platform=="activityPopover"){switch(e.activity){caseSocial.ACTIVITY_TWITTER:
console.log("User is shared on Twitter");break;caseSocial.ACTIVITY_CUSTOM:
console.log("This is a customActivity: "+e.activityName);break;}}});Social.addEventListener("customActivity",function(e){console.log("customActivity:");console.log(e);});
not able to get response in any of the above catches for customActivity.
Is there anything I am doing wrong ?
The text was updated successfully, but these errors were encountered:
Niral2110
changed the title
Callback or addEventListener("cutomActivity", function(){}); not working for cutomActivity
Callback or addEventListener("cutomActivity", function(){}); not working for customActivity
Sep 22, 2017
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
I am using module 1.8.4 with SDK 6.1.1.GA
Here I am facing an issue with customActivity callback.
Even I am not able to get "customActivity" event fired on tap of customButton.
Code being used is as following.
not able to get response in any of the above catches for customActivity.
Is there anything I am doing wrong ?
The text was updated successfully, but these errors were encountered: