Ionic Native:尝试调用Uid.IMEI,但未安装Uid插件。 (在某些设备中)

时间:2020-02-28 07:11:48

标签: android ionic-framework ionic3 ionic-native

我仅在某些设备(一加,三星银河)中面临udid插件(https://medium.com/better-programming/how-to-create-a-framework-with-carthage-support-c30b596d3a7a)的问题

from django.shortcuts import render
from CollectMail.models import Details
from django.http import HttpResponse
import pandas as p
import os


file = p.read_csv(r"C:\Users\Robert Chomba Mumba\Desktop\Project At Access Bank 2\Emails\test_data_final.csv")

n = len(file['EMAIL'])
j = 0
k = 1
while j != n:
    NewItem = file['EMAIL'][j]
    NewObject = 'ID' + str(k)
    NewObject = Details(email = NewItem)
    NewObject.save()
    j +=1
    k +=1
#Object names are ID1,ID2,ID3....

def index(request):
    #return HttpResponse(Details.objects.all())
    return HttpResponse(ID2.email)

,但是在其他Android设备上正常运行。在这种情况下,我将变为空。我尝试在平台就绪内调用函数,但是没有运气。

1 个答案:

答案 0 :(得分:0)

如果您只需要设备的UUID,则可以尝试使用此插件”

https://ionicframework.com/docs/native/device