jpush / jpush-phonegap-plugin

JPush's officially supported PhoneGap/Cordova plugin (Android & iOS). 极光推送官方支持的 PhoneGap/Cordova 插件(Android & iOS)。
https://docs.jiguang.cn
MIT License
926 stars 350 forks source link

SetTag,addTag,deleteTag Methods not working #342

Closed 10061994 closed 6 years ago

10061994 commented 6 years ago

I put this code on device ready event and there is no success alert come.Can you Please please respond very fast we need to launch app.Please help me.Thank you so much Window . JPush . setTags ({ sequence : 1 , tags : [ ' tag1 ' , ' tag2 ' ] }, ( result ) => { alert('result'); var sequence = result . sequence var tags = result . tags // array type }, ( error ) => { alert('error'); var sequence = error . sequence var errorCode = error . code })

Window . JPush . addTags ({ sequence : 1 , tags : [ ' tag1 ' , ' tag2 ' ] }, ( result ) => { alert('result'); var sequence = result . sequence var tags = result . tags // array type }, ( error ) => { alert('error'); var sequence = error . sequence var errorCode = error . code })

Window . JPush . deleteTags ({ sequence : 1 , tags : [ ' tag1 ' , ' tag2 ' ] }, ( result ) => { alert('result'); var sequence = result . sequence }, ( error ) => { alert('error'); var sequence = error . sequence var errorCode = error . code })

huangminlinux commented 6 years ago

其他接口是否正常?