Code Monkey home page Code Monkey logo

metrica-sample-ios's Introduction

Yandex AppMetrica Sample

This is a sample application that demonstrates basic usage of Yandex AppMetrica.

Documentation

Documentation could be found at AppMetrica official site

Quick start

  1. Install CocoaPods (http://cocoapods.org/) to manage project dependencies, if you haven't done it yet.

  2. Clone the repository:

    git clone https://github.com/yandexmobile/metrica-sample-ios
  3. Go to the cloned repository and install dependencies:

    pod install
  4. Open the project workspace MobileMetricaSample.xcworkspace.

  5. Build and run the MobileMetricaSample target.

License

License agreement is available at EULA site

metrica-sample-ios's People

Contributors

alexklints avatar bamx23 avatar elfenlaid avatar fallkrum avatar kanstantsin avatar santiago26 avatar stdo avatar yvasileuski avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

metrica-sample-ios's Issues

Проблема при отсутствии интернета

Вчера наблюдал в своем приложении следующую ситуацию: при загрузке приложения показывался сплешскрин и на этом все подвисало, соединение с интрнетом было, но при этом фактически ничего не пинговалось.
Проблема повторилась n-нное количество раз подряд.
Я закомментировал инициализацию метрики и приложение начало загружаться

+ (void)initialize
{
    //[YMMCounter startWithAPIKey:20167];
}

Как можно обезопасить себя от подобного, поможет ли оборачивание инициализации в бэкграунд?

dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0), ^{
        [YMMCounter startWithAPIKey:20167];
 });

YMMDatabase executeUpdate:error:withArgumentsInArray:orDictionary:orVAList:

Got few log error on iOS 6
[YMMDatabase executeUpdate:error:withArgumentsInArray:orDictionary:orVAList:] [ERROR Line 860] Unknown error calling sqlite3_step (19: column k is not unique) eu
-[YMMDatabase executeUpdate:error:withArgumentsInArray:orDictionary:orVAList:] [ERROR Line 861] DB Query: INSERT INTO kv (k, v) VALUES (?, ?)
-[YMMDatabase executeUpdate:error:withArgumentsInArray:orDictionary:orVAList:] [ERROR Line 894] Unknown error finalizing or resetting statement (19: column k is not unique) ...
They appears on 3-5 launch of installed app, and on a fresh launch after reinstall all seems ok.

Purchase Events Not showing on Account

I am iOS Developer

Facing following warning and my data is not updating on my account.

[YandexMobileMetrica] Report requests have exceeded retries count

Test Environment
Device Info

Mac 10.15.4
Xcode 12.1
swift 4.2

Mac 11.4
Xcode 12.5
swift 5

iPad with 14.4

checked for View Product
Add Cart, Delete Cart, Purchase Product.

Не работает параметры

Делал репорт об этой баге 31 октября через форму на сайте, не получил ответа.

Посылаю запросы из ios sdk с параметром

   [YMMYandexMetrica reportEvent:@"Test event2" parameters:@{@"os" : @"ios"} onFailure:nil];
   [YMMYandexMetrica reportEvent:@"Test event2" parameters:@{@"os": @"android"} onFailure:nil];

Событие Test event2 появляется в админке и даже виден параметр os, но по клику на параметр показывается прелодер а потом изчезает. То есть нет возможности посмотреть сколько событий со значение "ios" а сколько с "android" что делает бессмысленным само использование параметров.

Got hamful app-crash on build

info 10:
/Users/trickuc0d3r/work/xxic/ios/YandexMobileMetrica.framework/Headers/YMMYandexMetrica.h:9:9: fatal error: could not build module 'Foundation'

got this error and need emergency help =(
using react-native 59.1

this is my podfile `# Uncomment the next line to define a global platform for your project

platform :ios, '9.0'

target '21vek' do
pod 'AppCenter/Push', '> 1.13.2'
pod 'AppCenter/Crashes', '
> 1.13.2'
pod 'AppCenter/Analytics', '> 1.13.2'
pod 'AppCenterReactNativeShared', '
> 1.12.2'
pod 'YandexMobileMetrica', '3.5.0'
pod 'GoogleSignIn'
pod 'RNGoogleSignin', :path => '../node_modules/react-native-google-signin'
pod "VK-ios-sdk"
pod 'React', :path => '../node_modules/react-native', :subspecs => [
'Core',
'CxxBridge',
'DevSupport', # Include this to enable In-App Devmenu if RN >= 0.43
'RCTText',
'RCTImage',
'RCTNetwork',
'RCTWebSocket', # needed for debugging
# Add any other subspecs you want to use in your project
]
pod 'yoga', :path => '../node_modules/react-native/ReactCommon/yoga'
pod 'DoubleConversion', :podspec => '../node_modules/react-native/third-party-podspecs/DoubleConversion.podspec'
pod 'glog', :podspec => '../node_modules/react-native/third-party-podspecs/glog.podspec'
pod 'Folly', :podspec => '../node_modules/react-native/third-party-podspecs/Folly.podspec'
pod 'RNSVG', :path => '../node_modules/react-native-svg'

pod 'rn-fetch-blob', :path => '../node_modules/rn-fetch-blob'
pod 'RNFS', :path => '../node_modules/react-native-fs'
pod 'react-native-fast-image', :path => '../node_modules/react-native-fast-image'
platform :ios, '9.0'
pod 'react-native-async-storage', :path => '../node_modules/@react-native-community/async-storage'

target '21vekTests' do
inherit! :search_paths
# Pods for testing
end

end

target '21vek-tvOS' do

Uncomment the next line if you're using Swift or would like to use dynamic frameworks

use_frameworks!

Pods for 21vek-tvOS

target '21vek-tvOSTests' do
inherit! :search_paths
# Pods for testing
end

end`

Swift

How to integrate appmetrika into project based on swift?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.