Capacitor-NodeJS icon indicating copy to clipboard operation
Capacitor-NodeJS copied to clipboard

iOS support?

Open boozedog opened this issue 1 year ago • 13 comments

Looking at the readme I see that iOS support is "coming soon" ... is there progress being made on this item? Any sense of when it might be ready? Is there some obstacle that I or another contributor can help out with?

boozedog avatar Oct 14 '23 14:10 boozedog

Unfortunately I don't currently have a macOS device to add an iOS implementation to the plugin.

hampoelz avatar Oct 16 '23 05:10 hampoelz

@hampoelz I do have both macOS and iOS devices and am happy to help in any way I can but will likely need guidance.

boozedog avatar Oct 16 '23 12:10 boozedog

I was looking into making the old cordova plugin (https://github.com/janeasystems/nodejs-mobile-cordova) work with capacitor until I found this repo. The repo hasn't been updated in 2 years, but I think there is still a lot that can be carried over.

Luxbit avatar Oct 16 '23 15:10 Luxbit

@boozedog You can get started with the following guides:

  • https://capacitorjs.com/docs/plugins/ios
  • https://code.janeasystems.com/nodejs-mobile/getting-started-ios

Also, take a look at the code of the Android and Electron implementations, they are very similar. You should be able to use the structure of the code on iOS as well. So you can start "porting" this code to iOS following the instructions above. If you have any questions, I will be happy to help you.

hampoelz avatar Oct 17 '23 05:10 hampoelz

@Luxbit I am using a different approach than the Cordova plugin and I would suggest using the Android and Electron implementation as a base. In the last few months I have spent a lot of time reworking the structure of the plugin so that it should be easy to adopt and extend.

But the native bridge layer for the iOS implementation could be carried over. (The Android implementation also uses the native bridge from the Cordova plugin). However, when I have more time, I will rework the native bridge so that it better meets the needs of this plugin.

hampoelz avatar Oct 17 '23 05:10 hampoelz

@hampoelz Thanks for the heads-up, I hadn't looked at the code of this repo yet.

I would be happy to chip in if any help is needed, @boozedog

Luxbit avatar Oct 17 '23 06:10 Luxbit

Also looking forward to ios support

cyango avatar Nov 03 '23 09:11 cyango

Guys I'd be happy to contribute as well -> should we open a discord ?

klauss194 avatar Jan 08 '24 19:01 klauss194

Looks like quite a few people would like to have iOS support. Since my setup needs to be upgraded anyway, I might consider buying a MacBook.

hampoelz avatar Jan 15 '24 09:01 hampoelz

I'll start working on iOS support later this year.

hampoelz avatar Mar 03 '24 10:03 hampoelz

I'd be happy to sponsor so you can have it earlier, what could be a ETA if we do that?

cyango avatar Mar 03 '24 11:03 cyango

@cyango Hard to say, as I can't work full-time on the project due to my current university courses / assignments. Which ETA would you like to see?

hampoelz avatar Mar 04 '24 18:03 hampoelz

Count me in, in anyway we could speed this~! and thanks @hampoelz for the the awesome library, solved big issues 👍

ChSolution avatar Jun 23 '24 09:06 ChSolution