mirror of
https://github.com/danielsogl/awesome-cordova-plugins.git
synced 2025-02-21 00:23:00 +08:00
feat(jins-meme): enable background mode data collection
In order to enable background mode data collection we used the cordova-plugin-background-mode plugin in a new Cordova plugin repo, cordova-plugin-jins-meme (vs. cordova-plugin-jins-meme-es.) We opted to maintain the old repository for backwards-compatibility as we have multiple apps using various versions; this is simplest. Another unrelated change was made to silence unnecessary console logging.
This commit is contained in:
parent
f11be24f74
commit
1932f2dd66
@ -31,10 +31,10 @@ declare const cordova: any;
|
||||
* ```
|
||||
*/
|
||||
@Plugin({
|
||||
pluginName: 'JINS MEME ES',
|
||||
plugin: 'cordova-plugin-jins-meme-es',
|
||||
pluginRef: 'com.jins_jp.meme.plugin',
|
||||
repo: 'https://github.com/BlyncSync/cordova-plugin-jins-meme-es',
|
||||
pluginName: 'JINS MEME',
|
||||
plugin: 'cordova-plugin-jins-meme',
|
||||
pluginRef: 'JinsMemePlugin',
|
||||
repo: 'https://github.com/BlyncSync/cordova-plugin-jins-meme',
|
||||
platforms: ['Android', 'iOS']
|
||||
})
|
||||
@Injectable()
|
||||
@ -77,7 +77,7 @@ export class JinsMeme extends IonicNativePlugin {
|
||||
connect(target: string): Observable<any> {
|
||||
return new Observable<any>((observer: any) => {
|
||||
let data = cordova.plugins.JinsMemePlugin.connect(target, observer.next.bind(observer), observer.complete.bind(observer), observer.error.bind(observer));
|
||||
return () => console.log(data);
|
||||
return data;
|
||||
});
|
||||
}
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user