I am trying to use below existing cordova plugin into my IONIC 4 application. it has installed successfully but i could not find the path to add reference and use it.
sevensky-cordova-plugin-intent
How can we use it which is not available in Ionic Native
Have you referred below ionic framework documentation ??
Hope this will helps you.
Priyanka34:
a
Thank you for the reply.
i know about Ionic Framework and developed the app using IONIC 1 as well 4 years ago.
Here i am trying to understand how can we use the Cordova plugin in IONIC 4
Please see below link which is for ionic 4.
Thank you for this.
I will try this.
but this plugin also developed by Ionic native. can’t we use custom cordova plugin which is not there in ionic native.
All the ionic Native plugin is working fine. but i am not able to use below plugin.
sevensky-cordova-plugin-intent
As you can see here:
<?xml version="1.0" encoding="UTF-8"?>
<!--
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you 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
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.
-->
This file has been truncated. show original
the Plugin’s name is defined as intentPlugin :
<js-module src="www/intentPlugin.js" name="intentPlugin">
<clobbers target="intentPlugin" />
</js-module>
Try the following:
Declaration:
declare var intentPlugin: any;
I think the declaration has to go after the imports, but before the class or like me: in a separate file ‘declaration.ts’.
Then try to use it, but you have to check your Spelling, because without wrapper your wrapper could not provide autocomplete functions.