I am using deep linking to pass the drop off address so when the uber app fires, the address is pre-populated. I have a promo code which i would like to be pre-populated as well.
I understand to prepopulate promo code you could use this:
uber://?action=applypromo&promo=mypromo
The above action doesn't take my other parameter(like drop off address). How can I achieve this in one call?(pre-populate promo code as well as drop off address)?
Please help!
Unfortunately, this is not supported at the moment.
Related
I've seen a few topics on stackoverflow on promo codes handling: Detecting promo code, Handling promo code, Consumable promo codes and none of them have the right answer. There are some swift guides on how to create and redeem promo codes for in-app purchases, but nobody talks about what's happening later.
Redeeming an (in-app purchase) promo code on the AppStore:
lets you open the app on successful redeeming
notifies the transactionObserver declared preferably in the AppDelegate
Some people say it's all you have to do (and then when the user chooses payment there's suddenly no 9,99$ information, but something like 'Use promo code', which StoreKit handles behind the scenes). I'm afraid that doesn't work like that.
Should I handle it somehow in the AppDelegate - if there's a transaction coming right after the app launches (meaning that someone used promo code)? Should I present an alert telling the user he used the promo code, and unlock the functionality or add some 'gems' to his account (if it's consumables)?
EDIT: There are also these two apple developer forum topics: Few people have the same problem - no answer, Apple staff responded about where to place transactionObserver
EDIT2: Or perhaps promo codes cannot be applied to consumable products, which are used once and cannot be restored (using in-app promo codes is based on restoring I've read somewhere?)
For those who got stuck like me.
Indeed you need to declare a class (e.g. PurchaseHelper) importing StoreKit with SKProductsRequestDelegate and SKPaymentTransactionObserver extensions inside AppDelegate.
Then if the user redeems a promo code inside App Store - and he opens your app - 'updatedTransactions' func gets called and it's the only time you can do something with the purchased product.
What I did was - save an info/transactionId to UserDefaults, so in the main screen user gets an alert like "You redeemed a promo code. Choose your favorite spot and click Purchase to get it for free".
Of course a better solution is to do enable the product right away in the AppDelegate. If your promo code gives the user 100$ (consumable) then you can just add it (but there's still question if he is logged in).
If you know any better solutions, please tell me.
So, a friend of mine told me they have been using Facebook ads to post a deep link to send a whatsapp message and ask for the information about the ad via whatsapp. Bad news: this friend is not very tech savvy so that's all he knows.
Now, the subject actually caught my eye so I started researching. Unfortunately: official documentation states the url scheme for whatsapp is something like:
whatsapp://send?text=WHATEVER_YOU_WANT&abid=RECIPIENT_ADDRESSBOOK_ID
Now: big issue is that the abid (Adress Book ID) is relative to each phone and obeys only to the order each one was added to the specific phone we're talking about. In this case, the contact I want to send the message is 402. But 402 on each of your mobile devices will be any other person. Not the one you want to be.
So I reached the abid by downloading iMazing and sqlitebrowser and making a backup of my iPhone using the iMazing backup tool to then extract the ChatStorage.sqlite from said backup and looking into the sql database. I found that each contact does have an e-mail address time ID named ZCONTACTJID (NUMBERWITHOUT+#s.whatsapp.net) and another id named ZETAG (w:APPARENTLYRANDOMNUMBER;)
Is anyone of you familiar with such ID's or do have a way to make a deep link useful for send a message to a specific number?
Thanks!
For someone like me who is still looking for it, the following link seems to work -
Ping me on WhatsApp
Note: Use the parameter 'phone' and pass the actual phone number value instead of Adress Book ID.
It opens the contact in WhatsApp app, along with the message 'Hello World!' prepopulated in the input text box. The link works even if the phone number is not a valid contact in the phone's contact list.
(Tested this with google chrome on an android phone.)
The WhatsApp ABID is actually the standard iOS ABRecord (source). You can get that programmatically if you're writing a native iOS app, but unfortunately there's no way to access it within the context of a Facebook ad. And in any case, the abid is totally unsupported on WhatsApp Android (source).
A workaround would be to specify the number to send to within the message text, so that the user can enter it manually. Hacky, but maybe better than nothing...
Maybe you should better use the official Whatsapp API mentioned in THIS OTHER ANSWER (because S.O. policies I had to put a link to the solution, no duplicates).
Check this out. This is the updated one...
https://wa.me/<PHONE NUMBER WITH COUNTRY CODE/>?text=<MESSAGE />
For me something else worked:
intent://send/+31612345678#Intent;scheme=smsto;package=com.whatsapp;action=android.intent.action.SENDTO;end
I'm developing my first iPhone app to make what is effectively an app version of a fantasy league I created for work colleagues.
I am using Parse for the backend of the app. I only want people to be able to register with their work email address ie only if their e-mail address is _#mycompany.com
I'm sure this would be quite easy to someone who knew what htey were doing but I'm kind of new to this so any advice would be much appreciated.
Thanks
You could do this in a number of ways. The easiest way would be to have the validation happen on-device - just check the e-mail address the user has put into the app, and only allow the registration to happen if it matches the domain you want to limit it to.
However, although this is very easy it's also open to abuse and it's not very flexible (if you want to add additional domains, you have to update the app).
Fortunately, Parse offers cloud code, which lets you validate data server-side. Cloud code is written in JavaScript, and you then upload it to Parse. There is full documentation on Parse's website, including examples for validating data.
I have been struggling for a little while to get the contact list from a BBM connected app so that I can choose a contact to work with.
I am using the bb::platform::bbm::ContactService class, but whenever I call contacts() it comes back as null, even when the registration process is completed.
That method returns a list of contacts that have your application installed. There isn't a way for an application to read all of the user's BBM Contacts.
If you are looking to initiate a chat, you can use the invocation framework to do so and not specify a PIN. This will bring up the BBM contact picker - listing all BBM Contacts - for the user to select from.
Did you check to make sure your app has the right permissions? It should have access_pimdomain_contacts.
I have a website with a "contact me" form. Users can leave their name, email, and message and I'll get an email containing their data.
I've set up a goal on Google Analytics for the registration and everything works fine.
Now, the question is: Can I see their names and emails on my Analytics? Is there any way to make Google Analytics save that data and show it to me?
Thanks in advance,
Daniel
Theoretically this can be done using custom variables. See: http://code.google.com/apis/analytics/docs/tracking/gaTrackingCustomVariables.html
However, I believe that name and email address are considered Personally Identifiable Information so sending it to Google Analytics is most likely against their Terms of Service. See section 7: http://www.google.com/intl/en/analytics/tos.html
You would need to use another tracking system such as Piwik: http://piwik.org/
You can try using event tracking.
eg.
Register