我已经实现了Firebase邀请功能,我的目标是要知道有多少人通过动态链接单击并安装了我的应用程序,目前我已经成功实现了它,但是Firebase不在Firebase动态链接控制台中生成我的链接统计信息。我已经搜索了很多,但没有发现任何帮助。下面我附上了Firebase动态统计信息的屏幕截图。 [Screenshot ]这是我遵循的Firebase文档link,下面是我发送邀请的代码。
def countNonSpacingCharString(str):
count = 0;
for char in str:
if char not in UNICODE_NSM:
count = count + 1
return count
以及下面用App Delegate编写的用于处理传入邀请的代码。
//Address Claim
TXB0CON= 0b00000011; //Priority 0 clear TXREQ
//Sender ID in Extended Form
//PGN 60928 = 0b1110111000000000 (Address Claim)
TXB0SIDH= 0b11000111; //EID <28-1> Priority =6
TXB0SIDL= 0b01101010; //Extended Enable
TXB0EIDH= 0b00000000; //
TXB0EIDL= 0X80; //Source ID=128;
TXB0DLC = 0b00001000; //No RTR Data Length=
//Data to be sent
TXB0D0=0X80;
TXB0D1=0XFE;
TXB0D2=0XFF;
TXB0D4=0XFF;
TXB0D5=0XFF;
TXB0D6=0XFF;
TXB0D7=0XFF;
//Normal Mode
CANCON =0x00;
while(!(CANCON.B7==0 && CANCON.B6 ==0 && CANCON.B5==0)){
LATA2_BIT=1;
} // Wait for can to enter normal mode
LATA2_BIT=0;
TXB0CON = 0b00001011; //transmission request , priority 0
wait: if(TXB0CON.B3==1){
LATA2_BIT =1;
goto wait;} //Wait until Transmission is Succesfull