找到你要的答案

Q:iOS, Android, WP - Check application signature

Q:iOS、Android、WP检查应用程序的签名

I would like to have a third party applications to communicate with my application but I need to know inside my application that I'm communicating with ones that I trust. So I should be checking their signature.

My question is: Are there ways to check for the application signature accross all three main platforms? (Android, iOS, Windows Phone 8.1+)

During my google research I've found something like this for Android:

PackageManager pm = getPackageManager(); 
PackageInfo info = pm.getPackageInfo("com.example.app", PackageManager.GET_SIGNATURES);`

I am not even completely sure if this will work in Android and I have a problem to find anything similar for iOS and WP.

Or should I use some completely different approach?

I'd appreciate any kind of help with this issue. Thank you

我想有三分之一方应用程序与我的应用程序进行通信,但我需要知道我的应用程序,我与我信任的人沟通。所以我应该检查他们的签名。

我的问题是:是否有检查应用程序签名的方式在所有三个主要平台?(Android,iOS,Windows Phone 8.1 +)

在我的谷歌研究中,我发现了这样的Android:

PackageManager pm = getPackageManager(); 
PackageInfo info = pm.getPackageInfo("com.example.app", PackageManager.GET_SIGNATURES);`

我甚至不完全知道这将工作在Android和我有任何发现的iOS和WP类似的问题。

或者我应该用一些完全不同的方法?

I'd appreciate any kind of help with this issue. Thank you

answer1: 回答1:

I don't think you will be able to do this on either iOS or WP. Both are extremely locked down application environments and therefore do not let the children outside let alone play with each other.

I would suggest having a web page with an SDK that third-party apps can use. They can do what they need to do without worries that the "man" will try and stop them. Your app can then use a private SDK to retrieve any messages left for it. Might even be a way to have the website phone home if you'll pardon the pun.

我不认为你能在iOS和WP做这个。两者都是非常锁定的应用环境,因此不要让孩子们在外面更不用说玩对方。

我会建议一个网页一个SDK的第三方应用程序,可以使用。他们可以做他们需要做的事情,不用担心“男人”会试图阻止他们。然后,您的应用程序可以使用一个专用的SDK来检索为它留下任何消息。如果你原谅双关语的话,甚至可能有一个网站电话回家的方式。

android  ios  windows-phone