Problems when receiving a Voip push on iOS12

I'm using a voip push.



My app has some code to read the Plist during the action when it receives a voip push.



There was no problem in iOS11 and below, but iOS12 does not load the file due to the following error.



Error Domain=NSCocoaErrorDomain Code=257 "The file “myPlist.plist” couldn’t be opened because you don’t have permission to view it." UserInfo={NSFilePath=/.../Library/myPlist.plist, NSUnderlyingError=0x2824c5e90 {Error Domain=NSPOSIXErrorDomain Code=1 "Operation not permitted"}}


How do I resolve this?



In addition, when I received a push on iOS12, App life cycle seems to have changed.



[AppDelegate applicationWillEnterForeground:] function is executed and then the push function is executed.



It was a behavior that did not exist in iOS11.



Is this the intended behavior on iOS12?

Problems when receiving a Voip push on iOS12
 
 
Q