-
Notifications
You must be signed in to change notification settings - Fork 50
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
how support iOS #4
Comments
We are still working on the iOS version so it will take some time. Meanwhile you can use cordova websocket plugin along with mqtt.js to uniformly support the MQTT protocol. Regards, -----Original Message----- apply support iOS |
Hey Amey! Thanks for bringing MQTT to hybrid mobile apps :) Any update on iOS support status? Cheers, |
Hi Pedro, Amey K.
|
when will we get the mqtt plugin for ios? |
@Hephze |
Waiting for the iOS version. |
Hi,
We have added a temporary support to the iOS platform but we are quite unsure about the stable support of iOS platform for the time being. If you got a fork supporting native iOS version we will proudly welcome it.
Thanks
Amey K
Maintainer
…Sent from my iPhone
On 27-Nov-2016, at 8:37 AM, Jade ***@***.***> wrote:
Waiting for the iOS version.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or mute the thread.
|
connect---error:cannot find variable:userDefaultRouter |
@wuyandenuoyan do not use the routerConfig object if you are not using custom topic router.
We found a typo error. Apologies |
@arcoirislabs remove topic router, but connected failure. |
Check your credentials for connection
…Sent from my iPhone
On 25-Mar-2017, at 8:11 PM, wuyandenuoyan ***@***.***> wrote:
@arcoirislabs remove topic router, but connected failure.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.
|
Hi ! I heard that you already add temporary support for iOS. I used this plugin and work well in Android device, but no luck with iOS. Thank you ! |
The iOS support is from the JavaScript library of MqTT. We are almost done writing a Swift based native part, written from the scratch. Only the publish method is not supported yet. If you want to experiment with that development release, let me know. It can do everything except publish.
To do the tweaks in existing you can directly get the source code of the plugin and locally add the plugin using Cordova cli and the path of saved plugin. You can edit the 'cordova-plugin-mqtt.js' to add log statements to debug it. But as far as we know, we didn't had any problem for MqTT support iOS. You can go ahead and elaborate it
…Sent from my iPhone
On 16-May-2017, at 2:09 PM, Charles808 ***@***.***> wrote:
Hi !
I heard that you already add temporary support for iOS.
So, do I just need to use it the same way you already explained in the main page ?
I used this plugin and work well in Android device, but no luck with iOS.
Is there any tweaks needed ?
Thank you !
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.
|
You said you have no problem with MqTT in iOS. Are you saying the current plugin right now is already working in iOS ? My code is hanging everytime it reached this part
Any idea about this ? |
Refer the example code to get the working one. This code sample is a representation of plugin API.
…Sent from my iPhone
On 16-May-2017, at 4:14 PM, Charles808 ***@***.***> wrote:
You said you have no problem with MqTT in iOS. Are you saying the current plugin right now is already working in iOS ?
My code is hanging everytime it reached this part
cordova.plugins.CordovaMqTTPlugin.connect({ url:"tcp://test.mosquitto.org", //a public broker used for testing purposes only. Try using a self hosted broker for production. port:1883, clientId:"YOUR_USER_ID_LESS_THAN_24_CHARS", connectionTimeout:3000, willTopicConfig:{ qos:0, //default is 0 retain:true, //default is true topic:"<will topic>", payload:"<will topic message>" }, username:"uname", password:'pass', keepAlive:60, success:function(s){ console.log("connect success"); }, error:function(e){ console.log("connect error"); }, onConnectionLost:function (){ console.log("disconnect"); } })
Any idea about this ?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.
|
Thank you for your advice. I did exactly refer to the example code and It's working. I think I will try the websockets + mqtt.js or try to debug the source myself then. Thank you once again. |
We will look after the issue and get back to you.
…Sent from my iPhone
On 16-May-2017, at 4:24 PM, Charles808 ***@***.***> wrote:
Thank you for your advice.
I did exactly refer to the example code and It's working.
But, only working in Android Device not iOS (I'm using iPhone SE - iOS 10.3).
I think I will try the websockets + mqtt.js or try to debug the source myself then.
Thank you once again.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.
|
Hi, meanwhile waiting for you to look for the issue, Do you have any references for examples how to implement MqTT Websocket in Cordova ? UPDATED: Thank you ! |
Would it be possible to get access to the development release with partial iOS support? |
Any updates on how I can get this to work on ios? |
Any news on the iOS support? |
Any update? Readme say about update on 20 Feb 2019 but no new update |
I decide to revive an old working MQTT plugin for Android and IOS, now working smoothly |
doesn't work and you removed the IOS src libs. WTF there is no working solution in 20 May 2022 |
apply support iOS
The text was updated successfully, but these errors were encountered: