短信网址在iOS上工作正常并打开消息应用程序很好但在Android上它不会打开消息应用程序,只是崩溃。有谁知道它为什么不在Android上打开消息应用程序?
home.html的
public void postImage() {
runOnUiThread(new Runnable() {
@Override
public void run() {
//RecyclerView.
RecyclerView recyclerView = (RecyclerView) findViewById(R.id.rvNumbers);
recyclerView.setLayoutManager(new GridLayoutManager(context, numberOfColumns));
MyRecyclerViewAdapter.ItemClickListener itemClickListener;
adapter = new MyRecyclerViewAdapter(context,data,file_payload);
**adapter.setClickListener(this);**
adapter.mData = data;
adapter.PAYLOADS = allPayloads;
adapter.DATES = allDates;
recyclerView.setAdapter(adapter);
}
});}
home.ts
<h5 class="padding5"><a [href]="sanitize('sms:' + 1234567890)"><ion-icon class="contactIcons" name="text"></ion-icon></a></h5>
答案 0 :(得分:0)
我认为您需要将正斜杠添加到您的短信链接中,如下所示:
<a [href]="sanitize('sms://' + 1234567890)">
还要确保在config.xml中允许意图:
<allow-intent href="sms:*" />