UNPKG

onesignal-cordova-plugin

Version:

OneSignal is a high volume Push Notification service for mobile apps. In addition to basic notification delivery, OneSignal also provides tools to localize, target, schedule, and automate notifications that you send.

22 lines (21 loc) 589 B
export default class Location { /** * Location */ /** * Prompts the user for location permissions to allow geotagging from the OneSignal dashboard. * @returns void */ requestPermission(): void; /** * Disable or enable location collection (defaults to enabled if your app has location permission). * @param {boolean} shared * @returns void */ setShared(shared: boolean): void; /** * Whether location is currently shared with OneSignal. * @returns {Promise<boolean>} */ isShared(): Promise<boolean>; }