Ionic1 Local Notification installation error


#1

When I am trying to install local notificaion plugin(cordova-plugin-local-notifications - cordova plugin add https://github.com/katzer/cordova-plugin-local-notifications.git) and trying to create a android build in ionic1 then I am getting an error

Please help me to fix this issue.

Thanks in advance


#2

Hi,

The log file tell that you are using the deprecated API. That’s why you can’t integrate with latest API of the Android platform. Please use the latest API. Please replace TaskInput.source with TaskInput.file (It show the solution how to fix it in the log)

Thanks,


#3

Thanks for reply.

I dont know in which file i need to replace TaskInput.source with TaskInput.file.

Can you please tell me the file name?


#4

Hi,

Please search your project and find TaskInput.source into it. Just replace and try to build.

Thanks,


#5

Remove your existing plugin, remove the platform and re-add platform and plugin


#6

I did this but still facing same issue.


#7

can you post your > ionic info

output


#8

Here is the ionic info, please see image.

ionicinfo


#9

That error doesn’t seem harmful. Scroll down and see if you see any other errors while build is created.


#10

Not any other error,