Quantcast
Channel: Ionic Forum - Latest topics
Viewing all articles
Browse latest Browse all 70429

Host a separate server on the mobile app

$
0
0

@lhk wrote:

I think I’m facing a real blocker :frowning:

I need to do some heavy calculations and they need to interface with custom native code.
Having the calculations on the UI thread will make the app unresponsive.
Having them in a web worker seems impossible, since native code can’t be accessed.

Now, wild thinking: Ionic hosts the mobile app in a http server.
Would it be possible to spawn a second such server and communicate between them with HTTP?
I think the encapsulation rules for web workers prevent the native access. So maybe a second server goes around that?
Anything that gives me a second thread with access to native code would be awesome.

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 70429

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>