ABID in Whatsapp URL schemes

后端 未结 6 638
时光说笑
时光说笑 2021-01-03 07:54

Yesterday Whatsapp updated their iOS application and released official URL scheme (api hooks).

I wanted to play a little with it and I\'m now facing the problem that

6条回答
  •  鱼传尺愫
    2021-01-03 08:18

    abid stands for Adress Book ID and it is a parameter that you use with the Whatsapp url scheme in order to use data that you have in your address book. From the Whatsapp site.

    To use the url scheme for Whatsapp in your app to send a text saying "Hello World" you would do something like this (example from the site):

     NSURL *whatsappURL = [NSURL URLWithString:@"whatsapp://send?text=Hello%2C%20World!"];
     if ([[UIApplication sharedApplication] canOpenURL: whatsappURL]) 
     {
      [[UIApplication sharedApplication] openURL: whatsappURL];
     }
    

    But since you posted no code, I can't really say how to use the above or where to put it. But you could always check out some tutorials on using URL schemes if you need to.

    Hope that answers your question!

提交回复
热议问题