Platforms to show: All Mac Windows Linux Cross-Platform

Back to CKNotificationInfoMBS class.

CKNotificationInfoMBS.alertLocalizationArgs as String()

Type Topic Plugin Version macOS Windows Linux iOS Targets
method CloudKit MBS Mac64bit Plugin 16.5 ✅ Yes ❌ No ❌ No ✅ Yes All
The array of fields to use when building an alert message.

Use of this property is optional. This property contains an array of strings, each of which corresponds to a field of the record that triggered the push notification. Those names are used to retrieve the corresponding values from the record. The values themselves must be string, integer, double, or dates. Do not specify keys with other values. String values that are greater than 100 characters in length may be truncated when added to the push notification.

If you use %@ for your substitution variables, those variables are replaced by walking the array in order. If you use variables of the form %n$@, where n is an integer, n represents the index (starting at 1) of the item in the array to use. Thus, the first item in the array replaces the variable %1$@, the second item replaces the variable %2$@, and so on. You can use indexed substitution variables to change the order of items in the resulting string, which might be necessary when you localize your app’s messages.

CKNotificationInfoMBS.Constructor

Type Topic Plugin Version macOS Windows Linux iOS Targets
method CloudKit MBS Mac64bit Plugin 16.5 ✅ Yes ❌ No ❌ No ✅ Yes All
The constructor.

CKNotificationInfoMBS.copy as CKNotificationInfoMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
method CloudKit MBS Mac64bit Plugin 16.5 ✅ Yes ❌ No ❌ No ✅ Yes All
Creates a copy of this object.

CKNotificationInfoMBS.desiredKeys as String()

Type Topic Plugin Version macOS Windows Linux iOS Targets
method CloudKit MBS Mac64bit Plugin 16.5 ✅ Yes ❌ No ❌ No ✅ Yes All
The names of fields to include in the push notification payload.

This property contains an array of strings, each of which corresponds to the name of a field in the record that triggered the notification. When a push notification is delivered, the keys and their corresponding values are included in the payload of the push notification. You can include a maximum of three keys in the array.

For the keys you specify, the allowable values are string, integer, double, CLLocationMBS, date, and CKReferenceMBS. You cannot specify keys whose values contain other data types. String values that are greater than 100 characters in length may be truncated when added to the push notification.

CKNotificationInfoMBS.setAlertLocalizationArgs(args() as String)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method CloudKit MBS Mac64bit Plugin 16.5 ✅ Yes ❌ No ❌ No ✅ Yes All
Sets the array of fields to use when building an alert message.

Use of this property is optional. This property contains an array of strings, each of which corresponds to a field of the record that triggered the push notification. Those names are used to retrieve the corresponding values from the record. The values themselves must be string, integer, double, or dates. Do not specify keys with other values. String values that are greater than 100 characters in length may be truncated when added to the push notification.

If you use %@ for your substitution variables, those variables are replaced by walking the array in order. If you use variables of the form %n$@, where n is an integer, n represents the index (starting at 1) of the item in the array to use. Thus, the first item in the array replaces the variable %1$@, the second item replaces the variable %2$@, and so on. You can use indexed substitution variables to change the order of items in the resulting string, which might be necessary when you localize your app’s messages.

CKNotificationInfoMBS.setDesiredKeys(desiredKeys() as String)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method CloudKit MBS Mac64bit Plugin 16.5 ✅ Yes ❌ No ❌ No ✅ Yes All
Sets the names of fields to include in the push notification payload.

This property contains an array of strings, each of which corresponds to the name of a field in the record that triggered the notification. When a push notification is delivered, the keys and their corresponding values are included in the payload of the push notification. You can include a maximum of three keys in the array.

For the keys you specify, the allowable values are string, integer, double, CLLocationMBS, date, and CKReferenceMBS. You cannot specify keys whose values contain other data types. String values that are greater than 100 characters in length may be truncated when added to the push notification.

The items on this page are in the following plugins: MBS Mac64bit Plugin.


The biggest plugin in space...