Skip to content

Commit cebd1b5

Browse files
Add manual push completion handler support for iOS
Added Display.notifyPushCompletion() to allow applications to manually signal when they have finished handling a push notification on iOS. This is useful for apps that need to perform background tasks (like playing audio) before the app is suspended. This feature is enabled by setting the build hint `ios.delayPushCompletion` to `true`.
1 parent eda5a58 commit cebd1b5

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

CodenameOne/src/com/codename1/impl/CodenameOneImplementation.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1263,6 +1263,12 @@ public void screenshot(SuccessCallback<Image> callback) {
12631263
callback.onSucess(img);
12641264
}
12651265

1266+
/**
1267+
* Notifies the platform that push notification processing is complete.
1268+
*/
1269+
public void notifyPushCompletion() {
1270+
}
1271+
12661272
/**
12671273
* Returns true if the platform supports a native image cache. The native image cache
12681274
* is different than just {@link FileSystemStorage#hasCachesDir()}. A native image cache

0 commit comments

Comments
 (0)