Events from Hybrid Mobile Apps
Getting Started
How to Intercept Pixel Events
When you augment a webview from iOS or Android, we inject a window level object called fbmq_<YOUR_APP_ID>
. The Pixel, when set up to look for a mobile bridge, finds this window level fbmq
object each time an fbq
call is made. If the fbmq
object is found, the Pixel issues a call to a method on this object. This in turn triggers a native iOS or Android callback where we fire an SDK logEvent
Requirements
- If you have not already, you will need to setup Facebook Pixel for your web app container.
- You will need a Facebook Application ID registered through Facebook for Developers.
Update Your Pixel
Update the Facebook Pixel code within the application web container to reference your Facebook App ID. This sends an event to the Pixel that you would like to send App Events instead of Pixel Events.
fbq('init', <YOUR_PIXEL_ID>); fbq('set', 'mobileBridge', <YOUR_PIXEL_ID>, <YOUR_APP_ID>);
Update Your Native App
Update your native app with a call to augment your webview.
For Android
AppEventsLogger.augmentWebView(<YOUR_WEBVIEW_OBJECT>, <YOUR_ANDROID_CONTEXT>)
Calling augmentWebView
JavascriptInterface
to the web view that would send the AppEvents
using the specified context.For technical reasons, we only support WebView on Android 4.2 and higher.
For iOS
[FBSDKAppEvents augmentHybridWKWebView:<YOUR_WK_WEB_VIEW_OBJECT>];
For technical reasons, we only support WKWebView on iOS 8.0 and higher.
Log Events
After your code changes log Pixel Events as usual. We will intercept these events and send them as native App Events instead of Pixel Events.
相關推薦
Events from Hybrid Mobile Apps
Getting Started How to Intercept Pixel Events When you augment a webview from iOS or Android, we inject a window level object called fbmq_<YOUR_A
I built a web app that help events organizers build mobile apps
Hi there.I am looking for someone to test my app, it's a small web app prototype to help event organizers build cross platform mobile apps, the main concep
[Vue-rx] Access Events from Vue.js Templates as RxJS Streams with domStreams
ons mstr tle port enable vue.js UNC from prop The domStreams component property enables you to access Events from your Vue.js templates a
#26 Burgers & Mobile Apps
#26 Burgers & Mobile Apps“burger and fries on brown wooden tray” by Jakub Dziubak on UnsplashMonday was Patrick’s first day after his vacation and I’m
Gotta Test ’Em All: How to Test OutSystems Mobile Apps
A while ago I wrote an article where I discussed the pivotal role of mobile app testing in driving app quality and the impact on user adoption and user sat
Those "mobile apps are doomed" headlines? They are wrong!
Speaking of where those posts appear: Isn't it funny that the last post appears on a website? Why not use a bot to t
Network traffic monitoring for your mobile apps
Network traffic monitoring for your mobile appsIn this post we’ll make a brief review of possible ways to analyse the network traffic generated by your app
Visual Studio 2017 and Apache Cordova mobile apps | Andrés Zsögön
原文:Visual Studio 2017 and Apache Cordova mobile apps | Andrés Zsögön 以下是使用Microsoft Visual Studio 2017嘗試使用適用於Android,iOS和Windows的HTML,CSS和
Web & Mobile Apps Customer Success Stories
With an ambition to connect 20 million cars across Europe by 2020 through its SPARK technology, Springworks needed a highly scalable s
Web and Mobile Apps
Amazon Web Services is Hiring. Amazon Web Services (AWS) is a dynamic, growing business unit within Amazon.com. We are currently hiring So
Top 5 Tools for Augmented Reality in Mobile Apps
Augmented Reality (AR) is about overlaying pieces of a virtual world over the real world (in contrast to Virtual Reality (VR) that
How to read version (and other) information from Android and iOS apps using Java
How to read version (and other) information from Android and iOS apps using Java https://medium.com/@mart.schneider/how-to-read-version-and-oth
US Defense Intelligence Warns of AI-human Hybrid Soldiers From China
China is moving towards merging AI with humans, and the United States Defense Intelligence Agency sees this as a major concern for the future of warfare. L
5 outstanding apps from Latin America
If I asked you to recommend apps with incredible UI/UX, what would they be?Well, if you ask me or my South American colleagues, we’d probably name a few po
News, events, features and tips from the team behind IntelliJ Scala plugin
First of all, we want to thank all the contributors who have helped us to implement so many useful new features, bug-fixes, and refact
Chrome-Apps on mobile devices
Google announced a new set of tools this week to help developers publish their Chrome apps on iOS and Android. That's
Google Pixel Slate review: So close, yet so far, from being a perfect Chrome-Android tablet hybrid
Reviewing the Pixel Slate was like reviewing two devices. But when you attach it to the Pixel Slate Keyboard, it transforms into a premium Chromebook, with
linux下weblogic11g成功安裝後,啟動報錯Getting boot identity from user
tro ace author reason tac ica ons pst pri <2015-7-1 下午05時46分33秒 CST> <Info> <Management> <BEA-141107> <Versi
BEGINNING SHAREPOINT® 2013 DEVELOPMENT 第11章節--為Office和SP解決方式開發集成Apps Office新的App模型
align epo 挑戰 bsp apps rep 過去 content enter BEGINNING SHAREPOINT? 2013 DEVELOPMENT 第11章節--為Office和SP解決方式開發集成Apps Office新的App模型
NumberFormatException: Invalid int類型不匹配異常——使用SQL數據庫查詢語句select * from blacknumber order by _id desc limit ?,20;出現
rom add ray 修改 java turn 技術分享 data color 異常:類型不匹配 05-06 08:12:38.151: E/AndroidRuntime(14904): java.lang.NumberFormatException: Invalid i