User Activity

I follow the AN4657, use the following piece of code, my IAP can jump to APP when boot up, and APP can jump to IAP. BUT, after jump back to IAP from APP, it will NOT jump to APP successfully.why same code, sometime it works but other time it doesn't ...