简体   繁体   中英

Different behavior of app while testing on device and simulator ?

When I test my app on simulator,

When user tap the phone's Home button, app goes inactive and when opens again by tapping the app icon, it become active by showing the same view which was shown before tapping Home button.

BUT When test on Device,

When user tap the phone's Home button, app goes inactive and when opens again by tapping the app icon, it become active but NOT showing the same view which was shown before tapping Home button and shows the first view (here Login view of app ).

Why it behaves differently?? What I can do here to make app behaves as on simulator??

Thanks:)

the reason is your simulator may be of 4.0 or 4.2. or latest version.

Hence, when you click on simulator home button app should not removed from background and app is running on background.

hence you clicked again app icon it will open same view.

while your iphone (device) may be 3.0 hence it is not multitasking.

hence, when clicked on home button app would not remain in background and removed from background. hence when you again touch on app icon it should open from begining.

MULTITASKING section from this link should help you..
http://www.differencebetween.com/difference-between-apple-iphone-ios-3-and-ios-4/

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM