I am trying to integrate startapp ads into my application. I am using the guide provided by Startapp. It is given in the following.
------*start of Guide -----*
Step 1: Add the SDK JARs to your Eclipse project
Step 2: Update your manifest file
Step 3: Initialize the SDK
Step 4: Show Banners
Step 5: Show Interstitial Ads
Step 6: Show Splash Ad
------ */ end of Guide -------*
In step 1: I just copied given jar files by Startapp and pasted them into libs folder. Then I cleaned the project to update its directories.
In step 2: firstly, I added some permissions :
<uses-permission android:name="android.permission.INTERNET"/>
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE"/>
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>
<uses-permission android:name="android.permission.READ_PHONE_STATE"/>
//These permissions are only required for showing the ad when pressing the Home button:
<uses-permission android:name="android.permission.SYSTEM_ALERT_WINDOW"/>
<uses-permission android:name="android.permission.GET_TASKS"/>
secondly, I added new activities under application tag by replacing package_name with my app's package name:
<activity android:name="com.startapp.android.eula.EULAActivity"
android:theme="#android:style/Theme.Translucent"
android:configChanges="keyboard|keyboardHidden|orientation" />
<activity android:name="com.startapp.android.publish.list3d.List3DActivity"
android:taskAffinity="<package_name>.AppWall"
android:theme="#android:style/Theme" />
<activity android:name="com.startapp.android.publish.AppWallActivity"
android:theme="#android:style/Theme.Translucent"
android:taskAffinity="<package_name>.AppWall"
android:configChanges="orientation|keyboardHidden" />
In step 3: In the OnCreate method of my activity, I called the static functions:
StartAppAd.init(this, "<Your Developer Id>", "<Your App ID>");
StartAppSearch.init(this, "<Your Developer Id>", "<Your App ID>");
I changed app id and developer id according to my account.
After all these 3 steps I got the following two errors from eclipse:
errors:
StartAppAd cannot be resolved
StartAppSearch cannot be resolved
I read some docs and answers from some forums but none of them worked. Anyone have an idea how to solve this problem?
You have to import StartAppAd and StartAppSearch.
Add the following imports to your activity:
import com.searchboxsdk.android.StartAppSearch;
import com.startapp.android.publish.StartAppAd;
Related
I try to make a screenshot test with Espresso:
Test
class ScreenshotTest {
#get:Rule
var nameRule = TestName()
#get:Rule
var mActivityTestRule = ActivityTestRule(MainActivity::class.java)
#Test
fun saveActivityBitmap() {
capture(mActivityTestRule.activity).bitmap.writeToTestStorage(nameRule.methodName)
}}
Manifest:
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
but it failed with message:
No content provider registered for:
content://androidx.test.services.storage.outputfiles/saveActivityBitmap.png.
Are all test services apks installed?
It seems like necessary to tune ContentProvider...
Guys, may be anybody won this problem, or may be knows where is extensive documentation for writeToTestStorage method.
Google doesn't know about this and "developer.android.com" mentions about this method in release sheet only
I hope it would be helpful for someone.
I faced with similar problem on microsoft appcenter. The reason is appcenter does not support orchestrator.
This content provider is part of https://mvnrepository.com/artifact/androidx.test.services/test-services You should install orchestrator.apk and test-services.apk to run tests. When you run tests on your local emulator, gradle script does it for you, but appcenter does not
I am using epubreader (vers-one) NuGet package for parsing .epub files.
My Code:
string fileName = "SampleEPUB.epub";
var assembly = typeof(MainPage).GetTypeInfo().Assembly;
Stream stream = assembly.GetManifestResourceStream($"{assembly.GetName().Name}.{fileName}");
EpubBook epubBook = EpubReader.ReadBook(stream);
foreach (EpubNavigationItem chapter in epubBook.Navigation)
{
chapterDetails.Add(new ChapterDetails() { title = chapter.Title, htmlData = chapter.HtmlContentFile?.Content, subChapters = chapter.NestedItems });
}
1 When parsing the epub file like above, I am getting only one chapter(chapter name is content). If I click that chapter there is no data.
2 When we open that epub files using Adobe Digital Editions 4.5.11, there are a lot of chapters and contents. I need to parse all the chapters and TOC in the epub file. Please help me to find the issue behind this.
3 Also tried epubreader.cross NuGet package, but that project is deprecated. Are there any other NuGet packages for parsing epub files?
4 Currently, I have added sample epub files to the project and implemented parsing for it. Instead of that if the epub file is a link how I can manage it?
I have added a sample project here having .epub files for the reference. I have already posted a question related to this, but it not solved my problem completely.
Since it works in Adobe Digital Editions 4.x.x , we could install the plugin to our application .
Adobe Mobile SDK is no longer available in the Xamarin Components Store or in the NuGet Gallery. To download the Xamarin components, we need to go to GitHub download it directly.
Android
Import the ADBMobile Component to your Xamarin.Android Project:
Open your Xamarin Project
Open References dialog, and then .Net Assembly tab.
Select ADBMobile.XamarinAndroidBinding.dll from the folder lib/Android.
Add your ADBMobileConfig.json file into the Assets folder of your project.
Add permissions for:
• INTERNET
• ACCESS_NETWORK_STATE
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
Add the following activity and receiver if you are using In-app messaging:
<activity
android:name="com.adobe.mobile.MessageFullScreenActivity"
android:theme="#android:style/Theme.Translucent.NoTitleBar" />
<receiver android:name="com.adobe.mobile.MessageNotificationHandler" />
Add the following receiver if you are using acquisition:
<receiver android:name="com.your.package.name.GPBroadcastReceiver" android:exported="true">
<intent-filter>
<action android:name="com.android.vending.INSTALL_REFERRER" />
</intent-filter>
</receiver>
iOS
Import the ADBMobile Component to your Xamarin.iOS Project:
Open your Xamarin Project.
Open References dialog, and then .Net Assembly tab.
Select ADBMobile.XamarinIOSBinding.dll from the folder lib/ios-unified.
Add your ADBMobileConfig.json file to the project.
You could check the docs for more details .
I've just started a new Flutter app, so nothing has really bee done yet. I added firebase_core: to my pubspec.yaml file, no errors and the app starts up fine. when I add firebase_auth: it gives me this error:
Launching lib/main.dart on iPhone 11 Pro Max in debug mode...
Xcode build done. 21.9s
path: satisfied (Path is satisfied), interface: en0
Configuring the default Firebase app...
*** First throw call stack:
(
0 CoreFoundation 0x00007fff23e3dcce __exceptionPreprocess + 350
1 libobjc.A.dylib 0x00007fff50b3b9b2 objc_exception_throw + 48
2 CoreFoundation 0x00007fff23e3db0c +[NSException raise:format:] + 188
3 Runner 0x0000000109e60912 +[FIRApp configure] + 130
4 Runner 0x0000000109f2fcd9 -[FLTFirebaseAuthPlugin init] + 217
5 Runner 0x0000000109f2fa9b +[FLTFirebaseAuthPlugin registerWithRegistrar:] + 171
6 Runner 0x0000000109dfbc13 +[GeneratedPluginRegistrant registerWithRegistry:] + 115
7 Runner <…>
Exited
I've gotten it to this point and having a number of other issues with this package. What is happening?
I think you forgot the last (7) Step here:
https://pub.dev/packages/google_sign_in#ios-integration
You have to add the CFBundleTypeRoles in Info.plist for every signin method.
This example here is for Google Sign In.
<!-- Put me in the [my_project]/ios/Runner/Info.plist file -->
<!-- Google Sign-in Section -->
<key>CFBundleURLTypes</key>
<array>
<dict>
<key>CFBundleTypeRole</key>
<string>Editor</string>
<key>CFBundleURLSchemes</key>
<array>
<!-- TODO Replace this value: -->
<!-- Copied from GoogleService-Info.plist key REVERSED_CLIENT_ID -->
<string>com.googleusercontent.apps.861823949799-vc35cprkp249096uujjn0vvnmcvjppkn</string>
</array>
</dict>
</array>
<!-- End of the Google Sign-in Section -->
Change the REVERSED_CLIENT_ID with that one from your GoogleService-Info.plist
I home this helps you. I had the same error and this was the fix.
In my case, I was using google signin with background service in my flutter app. On initializing background service before google signin was crashing my app and doing google signin before initializing background service was fine.
If anyone using both together do consider this.
If you've added firebase packages to flutter project, you should add GoogleService-Info.plist which you downloaded from firebase console to your Xcode project. Also make sure, your bundle id (com.companyname.appname) and your firebase iOS project bundle id are same.
Plase check this link for firebase flutter setup: https://firebase.google.com/docs/flutter/setup
I am trying to add Admob to a flutter app.
I followed this tutorial:
https://www.youtube.com/watch?v=rXYmbTBT3Yo
as well as the official documentation for the plugin:
https://github.com/flutter/plugins/tree/master/packages/firebase_admob
I added these lines to my app/src/main/AndroidManifest.xml:
<meta-data
android:name="com.google.android.gms.ads.APPLICATION_ID"
android:value="ca-app-pub-#~#" />
Replacing the #~# I copied from the add app ui in the AdMob page.
I also added this dependency in the pubspec.yaml file:
firebase_admob: ^0.9.0+1
But when I load the app, it gets to:
Built build\app\outputs\apk\debug\app-debug.apk.
Installing build\app\outputs\apk\app.apk...
The app flashes on the screen and closes. I also couldn't find any way of showing the error. What am I doing wrong?
I hope that you will have solved that problem yet. If no, then changing the version of firebase_admob in pubspec.yaml file to 0.5.3 will solve your problem inshaAllah. Just change the version from 0.9.0+1 to 0.5.3
I added firebase crash reporting in my xamarin ios project, it seems everything is fine but no logs in console ... I also have push notifications implements and it works fine..
In AppDelegate I call initialization:
Firebase.Analytics.App.Configure();
Here is packages i added :
rgetFramework="xamarinios10" />
<package id="Xamarin.Firebase.iOS.CloudMessaging" version="1.2.2" targetFramework="xamarinios10" />
<package id="Xamarin.Firebase.iOS.Core" version="3.5.2" targetFramework="xamarinios10" />
<package id="Xamarin.Firebase.iOS.CrashReporting" version="1.1.5.1" targetFramework="xamarinios10" />
<package id="Xamarin.Firebase.iOS.InstanceID" version="1.0.9" targetFramework="xamarinios10" />
Also, I add before build command as it is documented in components page
sh ${ProjectDir}/scripts/FirebaseCrashReporting/xamarin_upload_symbols.sh -n ${ProjectName} -b ${TargetDir} -i ${ProjectDir}/Info.plist -p ${ProjectDir}/GoogleService-Info.plist -s ${ProjectDir}/service-account.json
Also, uploaded debug symbols from terminal :
sh scripts/FirebaseCrashReporting/xamarin_upload_symbols.sh -n App.iOS -b bin/iPhone/Debug -i Info.plist -p GoogleService-Info.plist -s service-account.json
It takes longer but is done. Is there any problems regarding package versions of something known issue?
If i call log after configuration in AppDelegate inside Finishing launching
public override bool FinishedLaunching(UIApplication application, NSDictionary launchOptions)
{
Firebase.Analytics.App.Configure();
Firebase.CrashReporting.CrashReporting.Log("blah");
}
log says that something in wrong :
2017-08-24 16:27:55.611 MYAPP.iOS[285:50120] You've implemented
-[ application:didReceiveRemoteNotification:fetchCompletionHandler:], but
you still need to add "remote-notification" to the list of your
supported UIBackgroundModes in your Info.plist. Resolved pending
breakpoint at 'AppDelegate.cs:141,1' to void
MYAPP.iOS.AppDelegate.<>c.b__17_0 (object sender,
Foundation.NSNotificationEventArgs e) [0x00007]. 2017-08-24
16:27:56.048: FIRMessaging library version 1.2.2
2017-08-24 16:27:56.068 MYAPP.iOS[285:50120] *** -[NSKeyedUnarchiver
initForReadingWithData:]: data is NULL 2017-08-24 16:27:56.069:
FIRMessaging AppDelegate proxy enabled, will
swizzle app delegate remote notification receiver handlers. Add
"FirebaseAppDelegateProxyEnabled" to your Info.plist and set it to NO
2017-08-24 16:27:56.070 Chronos.iOS[285]
[Firebase/Crash][I-CRA000004] Successfully initialized
** Unknown exception behavior: 0
From the log, it seems like the only problem is this message:
You've implemented -[
application:didReceiveRemoteNotification:fetchCompletionHandler:], but
you still need to add "remote-notification" to the list of your
supported UIBackgroundModes in your Info.plist. Resolved pending
breakpoint at 'AppDelegate.cs:141,1' to void MYAPP.iOS.AppDelegate
Other messages seem to be just some additional information from Firebase Message SDK.
*** -[NSKeyedUnarchiver initForReadingWithData:]: data is NULL
Is a message from XCode that the one of the SDKs is using the keychain and provides a nil object to that method.