airship-expo-plugin
Version:
Airship Expo config plugin
55 lines (54 loc) • 1.94 kB
TypeScript
import { ConfigPlugin } from '@expo/config-plugins';
export type AirshipAndroidPluginProps = {
/**
* Required. Local path to an image to use as the icon for push notifications.
* 96x96 all-white png with transparency. The name of the icon will be the resource name.
*/
icon: string;
/**
* Optional. The local path to a Custom Notification Channels resource file.
*/
customNotificationChannels?: string;
/**
* Optional. The local path to a AirshipExtender.kt file.
*/
airshipExtender?: string;
};
export type AirshipIOSPluginProps = {
/**
* Required. The APNS entitlement. Either "development" or "production".
*/
mode: 'development' | 'production';
/**
* Optional. The local path to a custom Notification Service Extension or "DEFAULT_AIRSHIP_SERVICE_EXTENSION" for Airship's default one.
*/
notificationService?: 'DEFAULT_AIRSHIP_SERVICE_EXTENSION' | string;
/**
* Optional. Airship will use a default one if not provided.
* The local path to a Notification Service Extension Info.plist.
*/
notificationServiceInfo?: string;
/**
* Optional. Defaults to NotificationServiceExtension if not provided.
*/
notificationServiceTargetName?: string;
/**
* Optional. The Apple Development Team ID used to configure the Notification Service Extension target.
*/
developmentTeamID?: string;
/**
* Optional. The minimum Deployment Target version used to configure the Notification Service Extension target.
* Defaults to iOS 15.
*/
deploymentTarget?: string;
/**
* Optional. The local path to a AirshipPluginExtender.swift file.
*/
airshipExtender?: string;
};
export type AirshipPluginProps = {
android?: AirshipAndroidPluginProps;
ios?: AirshipIOSPluginProps;
};
declare const _default: ConfigPlugin<AirshipPluginProps>;
export default _default;