Hello all. I face problem with Notification Service Extension. User mobile receive notification without any problem, payload contain mutable-content:1
inside it ( also, full example of payload is attached ), but, NSE didn't run correctly, also, original content of notification didn't saw ( in case, and there is a crash because of something wrong in app )
I checked device logs, and I see next errors:
[*] Mutated notification request is nil, will supress original content; notificationRequest=7019-8D60, error=Error Domain=NSCocoaErrorDomain Code=4097 "connection from pid 487 on anonymousListener or serviceListener" UserInfo={NSDebugDescription=connection from pid 487 on anonymousListener or serviceListener}, runtime: 0.410339
[*.notificationextension] Service extension connection encountered an error: sessionUUID=88D39801-67DF-4DC7-AA70-2AD7E8634369, error=Error Domain=NSCocoaErrorDomain Code=4099 "The connection from pid 505 on anonymousListener or serviceListener was invalidated: client is gone." UserInfo={NSDebugDescription=The connection from pid 505 on anonymousListener or serviceListener was invalidated: client is gone.}
example of payload:
"aps": {
alert = {
"loc-args" = (
msisdn
);
"loc-key" = "key";
};
badge = 1;
"content-available" = 1;
"mutable-content" = 1;
sound = "pnsound.aiff";
}, "m": CFG, "j": msisdn, "t": id, "n": M]
This problem is face from time to time, I can't catch this problem on same build and same environment, also, this problem can occur for some time, and after that everything will be fine