Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
1.3k views
in Technique[技术] by (71.8m points)

ionic framework - How to resolve this issue - "Can't resolve all parameters"?

I am new to Ionic and I am trying to invoke sending a message using Ionic Native Plugin. I am able to install all of the components but whenever I follow the documentation. I have this error. Also, can you help me to directly send without opening the SMS Messenger App?

home.page.ts

enter image description here

enter image description here

home.module.ts

enter image description here

IONIC Info

enter image description here

Any help is highly appreciated. Thank you.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

You can't send SMS directly without opening SMS Messenger app via IONIC SMS plugin. you will have to trigger your SMS via your backend/API from third parties like Twilio, AWS SNS service etc.

Please check below link for send SMS via Twilio they have explained this on their website for almost all technologies. so I guess you don't need this IONIC SMS plugin anymore you can remove this and everything will work for you. If you still has an issue please let me know

https://www.twilio.com/docs/sms/send-messages


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...