PrepAway - Latest Free Exam Questions & Answers

How should the developer do this?

As a part of the application design, the developer needs to handle the scenario where the user
sends the application to the background and then opens it again. How should the developer do
this?

PrepAway - Latest Free Exam Questions & Answers

A.
Add an event listener to the foreground event and handle the return to the foreground.

B.
Add an event listener to WL.Events.WORKLIGHT_IS_CONNECTED and handle the callback.

C.
Add an event listener to the background event and handle the return to the background, without
forgetting to reconnect to the backend.

D.
Use WL.Device.getNetworkInfo() to check if the application is in the foreground or background
and handle the return to the foreground.

Explanation:


Leave a Reply