Skip to content
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

Open
276361270 opened this issue Jan 23, 2016 · 25 comments
Open

how support iOS #4

276361270 opened this issue Jan 23, 2016 · 25 comments

Comments

@276361270
Copy link

apply support iOS

@arcoirislabs
Copy link
Owner

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,
Amey Kshirsagar
Managing Director & Co-Founder

-----Original Message-----
From: "wangrui" notifications@github.com
Sent: ‎23-‎01-‎2016 09:06 AM
To: "arcoirislabs/cordova-plugin-mqtt" cordova-plugin-mqtt@noreply.github.com
Subject: [cordova-plugin-mqtt] how support iOS (#4)

apply support iOS

Reply to this email directly or view it on GitHub.

@PedroMD
Copy link

PedroMD commented Apr 11, 2016

Hey Amey!

Thanks for bringing MQTT to hybrid mobile apps :) Any update on iOS support status?

Cheers,
Pedro

@arcoirislabs
Copy link
Owner

Hi Pedro,
Thank you for your appreciation. We are currently working on the plugin. Our team is currently working on other project which is not giving us any time. But we are hoping to release it as soon as possible.

Amey K.

On 11-Apr-2016, at 11:12 PM, PedroMD notifications@github.com wrote:

Hey Amey!

Thanks for bringing MQTT to hybrid mobile apps :) Any update on iOS support status?

Cheers,
Pedro


You are receiving this because you commented.
Reply to this email directly or view it on GitHub

@Hephze
Copy link

Hephze commented Oct 20, 2016

when will we get the mqtt plugin for ios?

@arcoirislabs
Copy link
Owner

@Hephze
We are currently too busy right now in other work & we have just created a scaffolding for the MQTT library in Swift. We need to work on background processing & notification part and once that's ready we will publish the iOS support. If you wish to contribute to this feature, we will welcome your pull request.
Approx timeline is shady right now

@zjhiphop
Copy link

Waiting for the iOS version.

@arcoirislabs
Copy link
Owner

arcoirislabs commented Nov 27, 2016 via email

@wuyandenuoyan
Copy link

connect---error:cannot find variable:userDefaultRouter

@arcoirislabs
Copy link
Owner

@wuyandenuoyan do not use the routerConfig object if you are not using custom topic router.
like this

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");
    }
})

We found a typo error. Apologies

@wuyandenuoyan
Copy link

@arcoirislabs remove topic router, but connected failure.

@arcoirislabs
Copy link
Owner

arcoirislabs commented Mar 25, 2017 via email

@Charles808
Copy link

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 !

@arcoirislabs
Copy link
Owner

arcoirislabs commented May 16, 2017 via email

@Charles808
Copy link

Charles808 commented May 16, 2017

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({...})

Any idea about this ?

@arcoirislabs
Copy link
Owner

arcoirislabs commented May 16, 2017 via email

@Charles808
Copy link

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.

@arcoirislabs
Copy link
Owner

arcoirislabs commented May 16, 2017 via email

@Charles808
Copy link

Charles808 commented May 17, 2017

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:
Found it.
From RabbitMQ website.

Thank you !

@fridgerator
Copy link

Would it be possible to get access to the development release with partial iOS support?

@mpfurnari
Copy link

Any updates on how I can get this to work on ios?

@gonzalovinas
Copy link

@spierala
Copy link

Any news on the iOS support?
Last commit on master is from July 2017... Do you still continue development?
Thanks in advance

@linhtranvu
Copy link

Any update? Readme say about update on 20 Feb 2019 but no new update

@linhtranvu
Copy link

I decide to revive an old working MQTT plugin for Android and IOS, now working smoothly

https://github.com/linhtranvu/cordova-plugin-fastrde-mqtt

@cimoskill
Copy link

doesn't work and you removed the IOS src libs. WTF there is no working solution in 20 May 2022

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests