Repository navigation
blog/push-v3-new-cloud/ #5924
Replies: 19 comments 6 replies
|
hi , In trying to migrate my old server push to this new. Your push you said that just update de url Push notifications should be application infrastructure, not a pile of expiring certificates and provider-specific JSON. This week we merged Push V3 into the Codename One core and completed its new cloud implementation. It gives an application a typed message model, managed provider credentials, subscriptions, server-side segments, campaigns, analytics, and a direct path into Surfaces. There is also one thing every existing push developer should do now: Change the push service URL from https://push.codenameone.com to https://cloud.codenameone.com and send a real notification through your existing code. Next week we plan to bring down the old push service and direct push.codenameone.com traffic to the new implementation. The compatibility endpoint accepts the existing request format, so existing code should keep working. It is still a completely new server, and “should” is not a test result. Please test before the cutover while both routes are easy to compare. I update de url but your push server I continue using the same parameter that old push. |
|
The Java method you posted uses the classic form-encoded API. For that method, set "https://cloud.codenameone.com/push/push"Keep the existing form parameters. Use the plain URL string, without Markdown brackets or parentheses. The The Firebase credential must be the private-key JSON from Firebase Project settings → Service accounts → Generate new private key. Android’s The Console credential-status display has also been updated. Refresh the page and check Configured/Ready for the same selected application. Saved credential fields remain blank intentionally; their contents aren’t returned to the browser. If you choose V3 later, create its server key under Account → Server API keys and use the application UUID under Push → Overview → Server API as |
|
I think that you must create more clear documetation how to configure push in you console. https://www.codenameone.com/developer-guide/push-notifications/ For example. I'm trying to configure ios side but you reject the key .p8 file that isn't a JSON. There isn't documentation related with this JSON. I use IA to solve the issue. I created my own Json with this structure but in your documentation don't said nothing { Sincerilly it'very dificult to configure Push notification V3 in you console because there isn't clear documentation step by step. |
|
Implementing your new push server this response is generated by you server {"timestamp":"2026-09-30T18:21:31.574+00:00","status":406,"error":"Not Acceptable","path":"/api/v3/push/messages"} Could you explain me? |
|
this my method |
|
We deployed a server-side fix for the HTTP 406 problem. Your We've also expanded the [Push Notifications guide](https://www.codenameone.com/developer-guide/push-notifications/) with step-by-step Console setup, credential examples, and classic-to-V3 migration instructions. To clarify the points you raised:
{
"teamId": "YOUR_APPLE_TEAM_ID",
"keyId": "YOUR_APNS_KEY_ID",
"topic": "com.example.yourapp",
"environment": "production",
"privateKey": "-----BEGIN PRIVATE KEY-----\nYOUR_KEY_CONTENTS\n-----END PRIVATE KEY-----"
}Use
The Windows application-selector difficulty is a separate issue and wasn't changed by these fixes. Which browser and version are you using, and does the problem occur when opening the list, scrolling, or selecting an application? |
|
curl -X POST https://cloud.codenameone.com/api/v3/push/messages using this parameter to new v3 API push notification where can I set not visible data like option type 3 in legacy Api? in data? |
|
It depends on which push API your installed apps use. Apps still using {
"appId": "APPLICATION_ID",
"targets": [{"provider": "fcm", "token": "DEVICE_TOKEN"}],
"message": {
"classic": {"type": 3, "body": "Visible text;hidden payload"}
}
}
Apps updated to |
|
Hi again. I'm trying to implement the new push notification v3 in my app. I read all documentation. I registered My push = PushClient.builder(cn1PushKey).listener(pl).build(); in init() method. I don't Know why the method pushId = com.codename1.push.Push.getPushKey(); it return the push token if I don't called this method yet? I removed the PushCallBack from my main class this method Push.getPushKey() it continue working with the new Implementation? |
|
Yes,
For new V3 code, use your listener’s registration callback: @Override
public void onRegistration(PushSubscription subscription) {
String token = subscription.getToken();
String provider = subscription.getTransportId();
// Update your backend if it stores device tokens.
}These give you the token and provider for V3’s |
|
this means that onRegistration() can run any time ? onRegistration() runs after initial native registration and can run again when a provider rotates its token. Replace the previous server-side token for that installation. |
|
Yes. Once you call It can run immediately with a previously saved token, again when native registration returns, and later when the provider reports a token change. Multiple calls can contain the same token, so a callback doesn’t necessarily mean it changed. Each time, update or insert the token and provider for that installation in your backend. Repeating that update with the same values should be harmless. The callback runs on the EDT. |
|
You don’t need to update your published apps to Apple’s APNs signing keys don’t expire annually, although they can be revoked. This concerns push authentication only, app-signing certificates and provisioning profiles are separate. See Apple’s documentation. Create one Console Push application for each logical app and environment. The Android and iOS versions of the same app can share that entry, with their respective credentials configured. You can reuse an APNs For Android, configure the Firebase service-account credential for the Firebase project used by that installed app. Your published legacy apps can receive notifications sent through the V3 endpoint. Send JSON to {
"appId": "APPLICATION_UUID",
"targets": [
{"provider": "apns", "token": "EXISTING_IOS_DEVICE_KEY"}
],
"message": {
"schema": 3,
"classic": {
"type": 1,
"body": "Hello"
}
}
}Keep the numeric type and body encoding your existing app expects. For Android, use provider This route uses the credentials saved in the Console, so you don’t send The migration guide covers both paths. Test the V3 classic request against an existing installed app before switching production sends. |
|
you need to fix this selector in Win11. It's very dificult to selected the second item because the wheel of the mouse increase so many. check the video Issue.selecting.aplicacion.in.push.console.mp4 |










Uh oh!
There was an error while loading. Please reload this page.
blog/push-v3-new-cloud/
Codename One Push V3 adds typed messages, managed credentials, segmentation, analytics, and Surface updates. Existing push apps should test the new cloud endpoint before next week's cutover.
https://www.codenameone.com/blog/push-v3-new-cloud/
All reactions