WebWorks 2.0'dan beri mümkündür.
, projenizde bu API kullanmak kimlik eklentisi eklemek için: salt okunur dize
webworks plugin add com.blackberry.identity
ve kontrol blackberry.identity.uuid
fazla bilgi:
https://developer.blackberry.com/html5/apis/v2_2/blackberry.identity.html
uuid
ilişkisini kastediyorsanız BBM Platformu (değil Blackberry cihaz uuid) d o zaman following code düşünün:
<script type="text/javascript">
// Create callback invoked when access changes
document.addEventListener("onaccesschanged", accessChangedCallback);
function accessChangedCallback(accessible, status) {
if (status == "unregistered") {
// App is unregistered, proceed to register
registerApp();
} else if (status == "allowed") {
// Access allowed
}
// Listen for other status...
};
function registerApp() {
// Register with the platform
blackberry.bbm.platform.register({
uuid: "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" // Randomly generated UUID
});
}
</script>
Eğer kayıt uygulaması için kullanılan uuid
rastgele uuid
oluşturulduğunun görebilirsiniz. Ve uygulamanız için registerApp'i çağırdığınızda, BBM platformunda kullanılmak üzere benzersiz bir tanımlayıcı olarak kendi UUID'inizi oluşturun.
Sadece
the following information bulundu:
kendisini benzersiz kendini tanımlamak, böylece kendi Evrensel Benzersiz Tanımlayıcı (UUID) tanımlamalıdır Her uygulama. Bu UUID, test ve geliştirme sırasında BBM SP sunucularına kaydolmak için kullanılır. BlackBerry App World ™ mağazasında yapılan uygulamalar otomatik olarak kendi UUID'lerine atanır. BlackBerry WebWorks'te, UUID, kayıtta kullanılan seçenekler parametresinde saklanır.
options = {
uuid: "33490f91-ad95-4ba9-82c4-33f6ad69fbbc"
};
blackberry.bbm.platform.register(options);
Ve yayının alt kısa tartışma vardır:
Q: can you please indicate where/how to find the AppWorld listed application UUID
A: That isn't visible to you. It's handled automatically.
Q: So how can we use the app's AppWorld UUID to register with BBM? Which was the context in which you mentioned the UUID.
A: In your code you always use your UUID you created. When the application is downloaded from App World the OS will automatically swap out your custom UUID with the one from App World.
için Kim reddetti: Bu geçerli bir sorudur. @ DK- Eğer C++ ile bağlantı kurabiliyorsanız, bb/device/HardwareInfo [(örnek)] 'deki bilgilere sahip olursunuz (https://github.com/blackberry/WebWorks-Community-APIs/blob/master/BB10/deviceInfo/NDK_project /src/template_ndk.cpp) –
@BojanKogoj +1, bu doğru bir soru, bunu reddetmek için bir sebep yok. –
Ayrıca BBM UUID ve AppWorld ile ilgili cevabımda ek güncellemeyi kontrol edin. –