Phonegap build seems to be malfunctioning

While attempting to develop my app on Phonegap using a plugin, I encountered an error specific to Android:

"Error - Some official plugins must be updated when utilizing PhoneGap >= 4.0.0. It is necessary to upgrade the version of any plugins that may contain the file: LocalNotification.java".

In response, I modified the source for the plugin from:

<plugin name="de.appplant.cordova.plugin.local-notification" source="pgb"/>

to:

<plugin name="de.appplant.cordova.plugin.local-notification" source="npm" />

This change led to an error during the IOS build process stating:

"Error - The specified plugin, its version, or a dependency of this plugin is not present on npm: de.appplant.cordova.plugin.local-notification"

As a result, by selecting one source, I am able to build for Android but not for IOS, whereas choosing the other source allows me to build for IOS but not for Android. Additionally, if I do not specify a version, the latest one should be used, which adds to the confusion caused by the initial error message.

What steps should I take next?

Answer №1

Always verify the version of phonegap that you are using.

If you are utilizing the remote build process here and have an outdated version of phonegap installed, it is possible that your plugins are set up for a local build rather than a remote one.

In essence, this:

<plugin name="de.appplant.cordova.plugin.local-notification" source="npm" />

is actually this:

<gap:plugin name="de.appplant.cordova.plugin.local-notification" source="npm" />

in older versions of phonegap. More information can be found here.

Your choices include upgrading to a newer version of phonegap or adjusting the plugin declarations as demonstrated above.

Similar questions

If you have not found the answer to your question or you are interested in this topic, then look at other similar questions below or use the search

Is it possible for me to send the templateUrl to the directive in AngularJS?

How can I pass a templateUrl to my directive without using transclusion? I have a widget directive that I need to populate with specific HTML. Is there a way to achieve this by passing the template URL as follows: <div widget templateUrl="template1.h ...

Generate visual representations of data sorted by category using AngularJS components

I am facing an unusual issue with Highcharts and Angularjs 1.6 integration. I have implemented components to display graphs based on the chart type. Below is an example of the JSON data structure: "Widgets":[ { "Id":1, "description":"Tes ...

Using a Vue.js component in a Laravel Blade template can be achieved by first registering the component

I added a component registration in my app.js as shown below: Vue.component('navbar', require('./components/Navbar.vue')); Now I am looking to import that component into my blade.php file like so: <template> <nav class="navb ...

Utilizing the same uuid twice along with Vuex and the unique identifier generation tool uuidv4

Within my vuex store, there is a function to create a post. This function generates a json Object containing a unique uuid using uuidv4(). However, I have noticed that if I execute the function multiple times, the uuid remains the same each time (unless I ...

Error in React-router: Unable to assign value to the 'props' property as it is undefined

Currently, I am working on setting up routing with Meteor using the react-router package. However, I have encountered a specific TypeError: Here is a link to an image that provides more context: This is the code snippet from my main.js file: import Reac ...

I have developed a website that can calculate the factorial of any given number. The next step is to design a function that will display the step-by-step mathematical process

Could use a hand with this one. The function below is empty and I'm a bit stuck on what to do next. Right now, the webpage displays the factorized number, but I want to show the mathematical equation before it, like so: User inputs: 3 Site outputs: " ...

Is it possible in Javascript to show identical content every time a checkbox is clicked?

I'm facing an issue with multiple checkboxes where I want them to display the same content when clicked. Currently, when I click on one checkbox, the content appears but remains hidden until I uncheck it, preventing the next checkbox from displaying t ...

Error: Unable to access the currentTime property as it is not defined

Incorporating Videojs into my react application has presented a challenge. I am attempting to set the current time of the videojs player, but keep encountering an error that reads "cannot read property currentTime of undefined". Below is my approach: var ...

JavaScript Naval Combat Game

I created a basic battleship game using javascript, but unfortunately it's not working properly. I stored the ship locations in an array and attempted to remove guessed locations by using the splice method. However, it keeps displaying "MISS!" when nu ...

Difficulty encountered with fetching results using jQuery autocomplete with AJAX as the data source

My autocomplete feature is not working properly with my ajax data source. Here is my code: $("#id_q").autocomplete({ source: function (request, response) { $.ajax({ url: "/search/autocomplete/", dataType: "jsonp", ...

Unable to set a value within the callback function

As I refactored the code, I realized that I needed to create a factory with methods to interact with the server. One method I have is: public DriverBadge updateDriverBadges() { DriverBadge driverBadge; try { ServerProxy.GetInst ...

Close the UIActionSheet triggered by the UIWebView

When using a web view with auto-detecting phone numbers, I noticed that tapping on a phone link in the web view on my iPad opens the default action sheet with options to add to contacts, copy, or cancel. However, I am facing an issue as I have no reference ...

Static file serving is malfunctioning

I created a basic node project to work on, but I'm struggling to serve an HTML file with its accompanying CSS styles. Previously, this exact code worked without any issues, but for some reason, it's not functioning now. I've tried searching ...

Does containsString perform quickly enough to be utilized for searching as each character is typed in?

As a user types in a UITextView, I am looking to search for various substrings or tokens within an NSString. These substrings include terms like "morning", "afternoon", "night", "next monday", "next tuesday", and more. Currently, my approach involves usin ...

Caution: It is not possible to make updates on a component while inside the function body of another component, specifically in TouchableOpacity

I encountered this issue: Warning: Trying to update a component from within the function body of another component. Any suggestions on how to resolve this? Interestingly, the error disappears when I remove the touchable opacity element. ...

Having trouble with the JSON format within the 'operations' field in the formData of your Next.js application?

I encountered a mutation that looks like this- mutation signUp($avatar: Upload!) { signUp( avatar: $avatar input: { name: "Siam Ahnaf" email: "<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail= ...

Is there a way to transform this recursive function into an iterative one? (utilizing var_dump in JavaScript)

Recently, I've been exploring the process of converting a recursive function into an iterative one. After researching on this topic for several days, I came across some informative websites that provided me with new ideas to experiment with. However, ...

What is the best way to assign a dictionary value to 'v-model' using a specific key?

Currently, I am working on integrating filterDataArray into my application to dynamically add parameters to my API requests. For this purpose, I have initialized the filterData array as follows: filterData: [ {key: 'name', value: '&ap ...

Extract the canvas code line from a function without using the eval function

Greetings, fellow Stackers! Please pardon my formatting as this is my debut question on this platform. I am currently working on a basic vector drawing tool. If you want to view the full CodePen code for reference, feel free to click here. Here's t ...

Icons not appearing in TinyMce

Currently, I am utilizing Laravel in combination with Blade and Vue.js, specifically the tinymce-wrapper @tinymce/tinymce-vue. The Issue: Following a transition from cloud to self-hosted, TinyMce (version 5.7.0) is not displaying icons as expected. <te ...