Closed charles-dr closed 4 years ago
Hi @TaiJinYuan , Please see https://github.com/apizee/ApiRTC-ionic/pull/new/navigate-event In this branch, I set an apiRTC provider which use angular events to dispatch on pages or component to navigate.
Hi,@francois-legoff. Thank you for your perfect answer. But I have another problem.which is iosrtc. when I run this on iOS, iosrtc is null. I am not sure why this happens. I will be appreciate if you guide me one more how to user iosrtc. Thanks in advance.
Hi @TaiJinYuan, can you try this
platform.ready().then(() => { // Just for iOS devices. if (typeof cordova.plugins!=="undefined" && typeof cordova.plugins!==null && typeof cordova.plugins.iosrtc !== 'undefined') { cordova.plugins.iosrtc.registerGlobals(); } });
?
On app.component.ts file
Hi, @francois-legoff , Thanks for you reply each time 👍 . I will try it.
I want to navigate between pages when receiving various signals. For instance, I am on Messages Page, and let's say I received a incoming call. At that time, I want to go to the chatReceivePage. My codes are implemented as follows.
Main problem is that Ionic handler(or data) is not recognized in the apiRTC event handler though it's defined in a Ionic provider or elsewhere. How can I navigate other pages when apiRTC events has been fired? Any help will be appreciate. Thank you.