A sample application demonstrating use of push notifications in Cordova applications.
https://mobilefirstplatform.ibmcloud.com/tutorials/en/foundation/8.0/notifications/
- From a Command-line, navigate to the project's root folder.
- Add a platform using the
cordova platform add
command. - Register the application by running the command:
mfpdev app register
. - Add a scope mapping for the element
push.mobileclient
. - In the MobileFirst Operations Console, setup the MobileFirst Server with either GCM details or APNS certificate, and add tags.
- Run the application by running the
cordova run
command.
Notes:
- iOS: Must be tested on physical devices.
- iOS: The BundleID must relate to an AppID configured with push notifications.
- iOS: The certificate must be uploaded via the MobileFirst Operations Console.
- Android: Emulator must have Google APIs to test push notifications.
- Android: The GCM Key and SenderId values must be configured via the MobileFirst Operations Console.
IBM MobileFirst Platform Foundation 8.0
Copyright 2016 IBM Corp.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at att http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.