Solved

Which SDK to use for Ionic with Capacitor?

  • 1 November 2022
  • 3 replies
  • 448 views

Hi,

 

I have apps that are built in Ionic with Capacitor and I’ve been using the JavaScript SDK for some time now, which worked great. I noticed the JavaScript SDK is now a legacy SDK and will be deprecated in the future, and there is no direct alternative for Ionic/Capacitor yet. 

 

Does anyone have any experience as to which SDK I should migrate to? The ones that come to mind are the Browser and the Node.js SDKs, but I’m not sure which one I should go for. 

 

Thank you

icon

Best answer by Zhenia Semenina 4 November 2022, 12:48

View original

3 replies

Userlevel 7
Badge +10

Hey @lorin 

AFAIK, if this is a front end app, then Browser SDK might be more suitable.

I think the Node.js one is more suited for server side implementation since the doc mentions that “it uses the HTTP V2 API” . But I’m not 100% sure.

Maybe a platform specialist can confirm this one.

Hi @Saish Redkar, thank you for the reply. Yes, the browser one seemed more suitable to me too, although they both seem really similar to me at a quick glance. I will probably end up trying the browser SDK as soon as I have time, and hope that it will work fine until a proper Ionic/Capacitor SDK will be developed (if at all). 

 

 

Userlevel 4
Badge +7

Hey there,

Yes, indeed, the proper SDK would be the best but for now I would recommend JS/Node.

 

It’s definitely not 100% ideal solution but the best you could do atm!

 

Best,

Zhenia

Reply