Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 8695

Eventbus Subscribe method fails on Mobile Devices

$
0
0

Hi all

I have an issue in the Fiori App, where the Core EventBus' Subscribe method fails on Mobile Devices. Its an Fiori type app, where I am firing an event from S2 view, and subscribing to that event in S3 view..

 

The Code runs fine on Desktops (S2 & S3 view are displayed simultaneously), but fails on Iphones..Here is what is written

 

//S2 - Event Publish
// Button id is passed as data
 sap.ui.getCore().getEventBus().publish("zApp","showHideButtons",{id:sButtonId});

 

//in S3 view, 
//_handleButtonsVisibility is the function
onInit: function() {
sap.ui.getCore().getEventBus().subscribe("zApp","showHideButtons", this._handleButtonsVisibility, this);
}

The code fails if the app is running on iphones...the S3 view is able to subscribed to the event, however the event handler is not triggered.

 

On phone, only the S2 view is displayed at the initial load, and S3 is not loaded..Seems like something to do with the Page not being Loaded and EventBus..

 

Any pointers???

 

Thanks

Sandip


Viewing all articles
Browse latest Browse all 8695

Trending Articles



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